I have finally quit the idea of learning Zend and instead i find CakePHP and CodeIgniter to be very impressive and simple to understand rather than cramming the strange global functions and configuration of index.php. Anyways, i wanted to ask you that CakePHP even spits out Html in sort of php language like :-
<?= $html->css('default'); ?>
Do i have to necessarily use this syntax only? or can i use plain old HTML’s link tag to load my stylesheet? If i have to strictly follow these rules only, then how shall i use JQuery and such things in CakePHP?
Thanks in advance 🙂
You can use plain html in .ctp files. However using the helpers provided by CakePHP will make your life a lot easier.
As for using JavaScript (like jquery)
Take a look at the cake book for more info:
http://book.cakephp.org/view/206/Inserting-Well-Formatted-elements
http://book.cakephp.org/view/349/Methods