Jump to content

samitrimal

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by samitrimal

  1. You can do if(!file_exists($_SERVER['DOCUMENT_ROOT']."theme/default/images/". $pros['image'])) $img = site_url()."theme/default/images/noimage.jpg"; else $img = site_url()."theme/default/images/". $pros['image']; ?>
  2. You can do Zend\Db\|Sql\Sql, here is the simple implementation. http://samitrimal.blogspot.com/2013/02/database-operation-in-model-using.html
  3. Use the tempate library by philsturgeon.You can find it in wiki . its really nice
  4. Try Uri routing. http://codeigniter.com/user_guide/general/routing.html
  5. codeigniter is much easier to start so try that .Then you can switch to zend
  6. Start with codeigniter . Secondly switch to fuelphp or kohana or zend
  7. dont leave the trailing space in your file. try using $this->load->helper('url'); redirect(''path/to/redirect"");
  8. I got this problem long ago and this helped me . It may help you too public function index() { $ci=&get_instance() $ci->load->helper('url'); $ci->load->library('header'); }
  9. This may help you <?php echo form_open(base_url(). 'index.php/user/login' ) ?>
  10. hi when i called this function i got the error :Error creating image in test function test(){ $height = 800; //the width of canvas $width = 890; //creating the image with $height and $width $im = imagecreate($width, $height) or die("Error creating image in test"); // width , height px $white = imagecolorallocate($im, 255, 255, 250) or die("Error in image allocation in test"); $black = imagecolorallocate($im, 0, 0, 0) or die("Error in image allocation"); imagefill($im, 0, 0, $black); }
  11. try this code <div id="maincontent" class="grid_9"> <?php if(isset($_GET['page']) and !empty(($_GET['page'])){ $page="content/".$_GET['page'].'.php'; if(file_exists($page)){ include($page); } else{ echo 'error'; } } else{ include('content/maincontent.php'); ?></div> }
  12. For add ,update and delete i have added a new tutorial. http://samitrimal.com.np/index.php/welcome/show_ent_detail/9
  13. For the tutorial of login : http://samitrimal.com.np/index.php/welcome/show_ent_detail/6/
  14. i encountered the following error : Fatal error: Non-abstract method. i need help to solve this problem please! regards
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.