Category Archives: View

Installation and first controller

Installation and first controller Create a minimum of your vhost ServerName phpway DocumentRoot /var/www/phpway/public If vhost is installed succesfully framework will ask you to create and give writable permissins to log file. touch /var/www/phpway/public/../log/development.log chmod 777 /var/www/phpway/public/../log/development.log Now, edit config/routes.php file and add first route to your controlelr. On default action is index. In our [...]

Html Helper

Html Helper link_to() $this->link_to($name, array( $url_options = array(), $html = array() )) Example = $this->link_to(‘Link’, array(‘url’ => array(‘action’ => ‘my_action’, ‘controller’ => ‘my_controller’, ‘id’ => ’1′, ‘param’ => ‘param’), ‘html’ => array(‘class’ => ‘link_class’))) Html <a class=”link_class” href=”/my_controller/my_action/1&param=param”>Link</a> link_to_remote() $this->link_to_remote($name, array( $url_options = array(), $ajax_options = array(), $html = array() )) Example = $this->link_to_remote(‘Link’, array(‘url’ [...]