Re: Difference between theme and layouts

2013-01-26 Thread shridhar patil
Theme is a collection of layouts , images, and styles that s it and layout is html, css On Monday, January 21, 2013 3:43:37 PM UTC+5:30, Siva balan wrote: > > Hi guys i am new to cakephp. i want to know the difference between layouts > and themes that are used in the cakephp > &g

Re: Difference between theme and layouts

2013-01-26 Thread shridhar patil
failed to openstream core.php in /cake/libs/configure.php on line 373 Suggestions Wel-comed On Monday, January 21, 2013 3:43:37 PM UTC+5:30, Siva balan wrote: > > Hi guys i am new to cakephp. i want to know the difference between layouts > and themes that are used in th

Re: Difference between theme and layouts

2013-01-24 Thread kani
App/View/Themed/YourTheme On Monday, January 21, 2013 8:58:59 PM UTC-8, Matthew Kaufman wrote: > > > On Mon, Jan 21, 2013 at 11:02 PM, kani >wrote: > >> >> Theme >> >>- CSS >>- JS >>- IMG >>- Layout >> >> > > What is the path to theme? > -- Like Us on FaceBo

Re: Difference between theme and layouts

2013-01-21 Thread Matthew Kaufman
On Mon, Jan 21, 2013 at 11:02 PM, kani wrote: > > Theme > >- CSS >- JS >- IMG >- Layout > > What is the path to theme? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because y

Re: Difference between theme and layouts

2013-01-21 Thread kani
Theme - CSS - JS - IMG - Layout On Monday, January 21, 2013 2:13:37 AM UTC-8, Siva balan wrote: > > Hi guys i am new to cakephp. i want to know the difference between layouts > and themes that are used in the cakephp > > -- Like Us on

Difference between theme and layouts

2013-01-21 Thread Siva balan
Hi guys i am new to cakephp. i want to know the difference between layouts and themes that are used in the cakephp -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google

Re: New video tutorial: CakePHP basics part 5 - Layouts and Elements

2012-08-27 Thread soda sonic
Thank you my Bro. 2012/8/28 frederikjacques > Hi cake lovers, > > I've just uploaded part 5 of my cakePHP basics tutorial series. > In this one I'll explain how you can use layouts and view elements! > > http://blog.the-nerd.be/2012/08/cakephp-basics-tutorial-

New video tutorial: CakePHP basics part 5 - Layouts and Elements

2012-08-27 Thread frederikjacques
Hi cake lovers, I've just uploaded part 5 of my cakePHP basics tutorial series. In this one I'll explain how you can use layouts and view elements! http://blog.the-nerd.be/2012/08/cakephp-basics-tutorial-part-5/ Hope you like it! Cheers, Frederik -- You received this message becau

Re: hi need to maintain to layouts one for admin and one for remaining

2011-11-14 Thread euromark
if (!empty($this->params['admin'])) {} suffices On 14 Nov., 11:20, anjith wrote: > Its working. > > On Nov 14, 3:05 pm, Xoubaman wrote: > > > > > > > > > In AppController::beforeFilter > > > iif (isset($this->params['admin']) && ($this->params['admin'] == 1)) { > > $this->layout = 'admin';

Re: hi need to maintain to layouts one for admin and one for remaining

2011-11-14 Thread anjith
Its working. On Nov 14, 3:05 pm, Xoubaman wrote: > In AppController::beforeFilter > > iif (isset($this->params['admin']) && ($this->params['admin'] == 1)) { > $this->layout = 'admin'; > > } > > This is for Cake 1.3, in Cake 2 I know $this->params has been replaced with > other similar propert

Re: hi need to maintain to layouts one for admin and one for remaining

2011-11-14 Thread Xoubaman
In AppController::beforeFilter iif (isset($this->params['admin']) && ($this->params['admin'] == 1)) { $this->layout = 'admin'; } This is for Cake 1.3, in Cake 2 I know $this->params has been replaced with other similar propertie. -- Our newest site for the community: CakePHP Video Tutorials h

Re: hi need to maintain to layouts one for admin and one for remaining

2011-11-13 Thread anjith
s->params['controller'] == 'admins') { >         $this->layout = 'admin_layout'; > > } > > On Nov 14, 11:48 am, anjith wrote: > > > > > Hi, > > > I need to have two layouts one for admin and one for remaining all > >

Re: hi need to maintain to layouts one for admin and one for remaining

2011-11-13 Thread Sadikul Ameen Mohamed
Use this code in App_controller if($this->params['controller'] == 'admins') { $this->layout = 'admin_layout'; } On Nov 14, 11:48 am, anjith wrote: > Hi, > > I need to have two layouts one for admin and one for remaining all > pages

hi need to maintain to layouts one for admin and one for remaining

2011-11-13 Thread anjith
Hi, I need to have two layouts one for admin and one for remaining all pages. How to create new admin template just like default.ctp and how to specify that to functions of admin controller. Regards, Anjith Kumar G -- Our newest site for the community: CakePHP Video Tutorials http

Re: Own layouts and content-type

2011-10-27 Thread euromark
well, it seems like it is possible to do from a controller action: http://book.cakephp.org/2.0/en/controllers/request-response.html?highlight=response $this->response->type($file['type']); $this->response->download($file['name']); $this->response->body($file['content']); $this->response->send();

Own layouts and content-type

2011-10-27 Thread euromark
this seems to be left undocumented but cake2.0 seems to automatically output a content-type which overrides the own one in 1.3 I had in the "pdf" layout: header('Content-Type: application/pdf; charset=' . $charset); ... now in 2.0 it always is "text/html" after debugging I assume that the CakeRep

Re: Layouts

2011-10-17 Thread euromark
sounds like a component would be helpful here it can store the current layout in the session but also automatically set the layout depending on some conditions etc On 17 Okt., 06:39, Nitin Hittalamani wrote: > Yup...You need to mention if you are using other lay out instead of default. > This is

Re: Layouts

2011-10-16 Thread Nitin Hittalamani
Yup...You need to mention if you are using other lay out instead of default. This is what i used to do. On Mon, Oct 17, 2011 at 3:37 AM, Meroe Kush wrote: > Hello all! > > ** ** > > I am looking for advice on a way to pass the currently used layout into the > next accessed controller. Shoul

Layouts

2011-10-16 Thread Meroe Kush
Hello all! I am looking for advice on a way to pass the currently used layout into the next accessed controller. Should I just use a session and set it and reference it in each of the methods or is there a way to look at the layout from the previous controller and pass to the requested control

Re: Cake 2.0: Creating an helper accessible in layouts

2011-09-09 Thread WebbedIT
wrote: > Filename should be FassetHelper.php > > class FassetHelper extends AppHelper {} > > and in view: $this->Fasset > > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2011/9/8 Chris Cinelli > > > > > > > > > How do I create an

Re: Cake 2.0: Creating an helper accessible in layouts

2011-09-08 Thread Tilen Majerle
Filename should be FassetHelper.php class FassetHelper extends AppHelper {} and in view: $this->Fasset -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/9/8 Chris Cinelli > How do I create an helper accessible in layouts? > > I created a file 'Fasset.php' in App/

Cake 2.0: Creating an helper accessible in layouts

2011-09-08 Thread Chris Cinelli
How do I create an helper accessible in layouts? I created a file 'Fasset.php' in App/View/Helper that looks like: App::uses('AppHelper', 'View/Helper'); // Do I need it? Not sure what App::uses does. I found it in FormHelper App::import('Core', array(&#

Re: Fatal error: Call to a member function scripts_for_layout() on a non-object in app/views/layouts/default.ctp on line 38

2011-08-15 Thread O.J. Tibi
Hey Shawn, I'm thinking that you did this in your layout code: scripts_for_layout(); ?> You should've just done this: Cheers, OJ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help oth

Fatal error: Call to a member function scripts_for_layout() on a non-object in app/views/layouts/default.ctp on line 38

2011-08-15 Thread shawn e
hello all, i am new to cake, just got this error, after installing a script, please help... i deleted cache, the paths correct. any help is higly appreciated shawn -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Quest

Re: Is it possible to get a query and display it to views/layouts/default.ctp? Cake 1.3?

2011-03-10 Thread Greg Skerman
mple numbers of items on cart) and display it on my > views/layouts/default.ctp file? > > Image > http://i141.photobucket.com/albums/r50/louiemiranda/debug/shopcart.png > > On a normal controller, I would just add this on $this->set. Now, since > views/layouts/default.ctp

Re: Is it possible to get a query and display it to views/layouts/default.ctp? Cake 1.3?

2010-09-30 Thread Greg Skerman
$this->set(compact('cartcount')); > } > > on app/app_controller.php > > It worked. > > -- > Louie Miranda > - Email: lmira...@gmail.com > - Web: http://www.louiemiranda.com > > > > On Thu, Sep 30, 2010 at 8:22 AM, Louie Miranda wrote: > >

Re: Is it possible to get a query and display it to views/layouts/default.ctp? Cake 1.3?

2010-09-29 Thread Louie Miranda
2010 at 8:22 AM, Louie Miranda wrote: > Data variables did not worked when placed on views/layouts/default.ctp? > > -- > Louie Miranda > - Email: lmira...@gmail.com > - Web: http://www.louiemiranda.com > > > > On Wed, Sep 29, 2010 at 3:54 PM, Jeremy Burns | Class Ou

Re: Is it possible to get a query and display it to views/layouts/default.ctp? Cake 1.3?

2010-09-29 Thread Louie Miranda
Data variables did not worked when placed on views/layouts/default.ctp? -- Louie Miranda - Email: lmira...@gmail.com - Web: http://www.louiemiranda.com On Wed, Sep 29, 2010 at 3:54 PM, Jeremy Burns | Class Outfit < jeremybu...@classoutfit.com> wrote: > Put it in an element - in

Re: Is it possible to get a query and display it to views/layouts/default.ctp? Cake 1.3?

2010-09-29 Thread Jeremy Burns | Class Outfit
> query (example numbers of items on cart) and display it on my > views/layouts/default.ctp file? > > Image > http://i141.photobucket.com/albums/r50/louiemiranda/debug/shopcart.png > > On a normal controller, I would just add this on $this->set. Now, since > views

Is it possible to get a query and display it to views/layouts/default.ctp? Cake 1.3?

2010-09-29 Thread Louie Miranda
Hi, I have this shopping cart where I am trying to figure out how can I display a query (example numbers of items on cart) and display it on my views/layouts/default.ctp file? Image http://i141.photobucket.com/albums/r50/louiemiranda/debug/shopcart.png On a normal controller, I would just add

Re: 1.2 to 1.3: Notice (8): Undefined variable: session [APP/views/layouts/default.ctp, line 103]

2010-09-23 Thread Sam
> On Thu, Sep 23, 2010 at 12:40 PM, j.blotus wrote: > > I think you have used up your question quota for the week. On Sep 23, 6:46 am, Joshua Muheim wrote: > What a luck that weekend is coming soon...! Haha nice. Check out the new CakePHP Questions site http://cakeqs.org and help others with t

Re: 1.2 to 1.3: Notice (8): Undefined variable: session [APP/views/layouts/default.ctp, line 103]

2010-09-23 Thread Joshua Muheim
Sep 23, 3:48 am, Joshua Muheim wrote: >> Another thing: now it tells me that $cakeDebug is not defined: >> >> Notice (8): Undefined variable: cakeDebug >> [APP/views/layouts/default.ctp, line 124] >> >> I guess the solution is quite easy, again, but I just don&#x

Re: 1.2 to 1.3: Notice (8): Undefined variable: session [APP/views/layouts/default.ctp, line 103]

2010-09-23 Thread j.blotus
Notice (8): Undefined variable: cakeDebug > [APP/views/layouts/default.ctp, line 124] > > I guess the solution is quite easy, again, but I just don't find it... > > > > On Thu, Sep 23, 2010 at 9:38 AM, Joshua Muheim wrote: > > Thanks guys! > > > On Wed,

Re: 1.2 to 1.3: Notice (8): Undefined variable: session [APP/views/layouts/default.ctp, line 103]

2010-09-23 Thread Joshua Muheim
Oh, yeah, found it now... ;-) http://nuts-and-bolts-of-cakephp.com/2009/12/22/bye-bye-cakedebug/ On Thu, Sep 23, 2010 at 9:48 AM, Joshua Muheim wrote: > Another thing: now it tells me that $cakeDebug is not defined: > > Notice (8): Undefined variable: cakeDebug > [APP/views/layouts

Re: 1.2 to 1.3: Notice (8): Undefined variable: session [APP/views/layouts/default.ctp, line 103]

2010-09-23 Thread Joshua Muheim
Another thing: now it tells me that $cakeDebug is not defined: Notice (8): Undefined variable: cakeDebug [APP/views/layouts/default.ctp, line 124] I guess the solution is quite easy, again, but I just don't find it... On Thu, Sep 23, 2010 at 9:38 AM, Joshua Muheim wrote: > Thanks guys

Re: 1.2 to 1.3: Notice (8): Undefined variable: session [APP/views/layouts/default.ctp, line 103]

2010-09-23 Thread Joshua Muheim
rote: >> Hi everybody >> >> I'm upgrading to v1.3 and have some problems I couldn't figure out >> yet... >> >> In my layouts/default.ctp I have the following code: >> >>                         >                         if ($ses

Re: 1.2 to 1.3: Notice (8): Undefined variable: session [APP/views/layouts/default.ctp, line 103]

2010-09-22 Thread j.blotus
;t figure out > yet... > > In my layouts/default.ctp I have the following code: > >                                                 if ($session->check('Message.flash')) { >                                 $session->flash(); >                         } >

Re: 1.2 to 1.3: Notice (8): Undefined variable: session [APP/views/layouts/default.ctp, line 103]

2010-09-22 Thread Jeremy Burns | Class Outfit
at 16:16, psybear83 wrote: > Hi everybody > > I'm upgrading to v1.3 and have some problems I couldn't figure out > yet... > > In my layouts/default.ctp I have the following code: > > if ($session->check('Message.

1.2 to 1.3: Notice (8): Undefined variable: session [APP/views/layouts/default.ctp, line 103]

2010-09-22 Thread psybear83
Hi everybody I'm upgrading to v1.3 and have some problems I couldn't figure out yet... In my layouts/default.ctp I have the following code: check('Message.flash')) { $session->flash(); }

Re: Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **] and Notice (8): Undefined variable: javascript [APP\views\layouts\default.ctp, line **] :: CakePHP 1.3

2010-05-18 Thread Kurt Polinar
I see. I haven't read it. Now I know. Thank you so much John. Your a big help. Solved! On Tue, May 18, 2010 at 3:58 PM, John Andersen wrote: > The javascript helper in 1.3 is deprecated, take a look at: > > http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3#View-and-Helpers-15

Re: Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **] and Notice (8): Undefined variable: javascript [APP\views\layouts\default.ctp, line **] :: CakePHP 1.3

2010-05-18 Thread John Andersen
The javascript helper in 1.3 is deprecated, take a look at: http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3#View-and-Helpers-1566 See the bottom of the page. Enjoy, John On May 18, 10:17 am, kirara wrote: > Hi guys, > > My first problem with Undefined variable: session is

Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **] and Notice (8): Undefined variable: javascript [APP\views\layouts\default.ctp, line **] :: CakePHP 1.3

2010-05-18 Thread kirara
Hi guys, My first problem with Undefined variable: session is fixed (thanks for Zaky Katalan-Ezra). It made out that commenting $var helpers = array('Html','Form','Javascript'); corrected the problem. But another problem occurs. 'Undefined variable: javascript'. So I've declared my helper to my us

Re: Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **]::CakePHP 1.3

2010-05-17 Thread Kurt Polinar
Thank you! I have this one question but not that related. It's on the Auth component. I've tried to create a login for my admin panel using the Auth component and just using simple auth. But it gives me an error message: "Login Failed. In valid username of password". I've inputed the right passwor

Re: Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **]::CakePHP 1.3

2010-05-17 Thread Zaky Katalan-Ezra
For now declare what you need in each controller. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake

Re: Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **]::CakePHP 1.3

2010-05-17 Thread Kurt Polinar
Yeah. Maybe it's a bug. But how can you use helpers without declaring them. I know Form, Html are loaded automatically. But what about Ajax and other helpers? On Tue, May 18, 2010 at 2:08 PM, Zaky Katalan-Ezra wrote: > I am glad for you. > I didn't add the helper deceleration any where and every

Re: Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **]::CakePHP 1.3

2010-05-17 Thread Zaky Katalan-Ezra
I am glad for you. I didn't add the helper deceleration any where and every things is working fine. I hope some one can tell me if its a bug. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you ar

Re: Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **]::CakePHP 1.3

2010-05-17 Thread Kurt Polinar
Thank you and it works great! Should I add the helper on every controller I want? On Tue, May 18, 2010 at 12:22 PM, Zaky Katalan-Ezra wrote: > *helpers deceleration > > > On Tue, May 18, 2010 at 7:21 AM, Zaky Katalan-Ezra wrote: > >> I had the same problem and I fixed it by removing the componen

Re: Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **]::CakePHP 1.3

2010-05-17 Thread Zaky Katalan-Ezra
*helpers deceleration On Tue, May 18, 2010 at 7:21 AM, Zaky Katalan-Ezra wrote: > I had the same problem and I fixed it by removing the component > deceleration in app_controller.php > #var $helpers = array('Javascript', 'Form', 'Html'); > Every thing is still working. > > I had this problem only

Re: Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **]::CakePHP 1.3

2010-05-17 Thread Zaky Katalan-Ezra
I had the same problem and I fixed it by removing the component deceleration in app_controller.php #var $helpers = array('Javascript', 'Form', 'Html'); Every thing is still working. I had this problem only with two application out of five. I didn't had the time to check the difference between thos

Re: Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **]::CakePHP 1.3

2010-05-17 Thread Sergei
Yes, you should include Session helper manually in app_controller. On May 17, 11:14 pm, kirara wrote: > Hi guys, > > I have this cakephp problem when trying to use "$session->flash()" > this error occurs "Notice (8): Undefined variable: session [APP\vi

Notice (8): Undefined variable: session [APP\views\layouts\login.ctp, line **]::CakePHP 1.3

2010-05-17 Thread kirara
Hi guys, I have this cakephp problem when trying to use "$session->flash()" this error occurs "Notice (8): Undefined variable: session [APP\views \layouts\login.ctp, line **]". "Fatal error: Call to a member function check() on a non-object in ** \www\cakeapp\app\vie

Re: How to set different layouts

2010-04-07 Thread cricket
On Apr 7, 8:39 am, narendra wrote: > HI !, > I am new to CakePHP, > I have a problem like this > i have a login page with one layout after successful login a different > layout, please help me how to solve this problem. > > Now in default.ctp i have written login page code which is having one > la

How to set different layouts

2010-04-07 Thread narendra
HI !, I am new to CakePHP, I have a problem like this i have a login page with one layout after successful login a different layout, please help me how to solve this problem. Now in default.ctp i have written login page code which is having one layout(appearance) i have to show another layout afte

Re: how to setup 3 distinct Layouts: Public / UserLoggedIn / AdminLoggedin ?

2010-01-11 Thread Everton Yoshitani
o system): User Homepage + Links to the parts >> of the backend System >> LAYOUT3: (admin user): Admin Homepage + Links to edit and manage all >> aspects of system >> >> >> >> > This is actually very simple in cake. > > Write your layouts in views/

Re: how to setup 3 distinct Layouts: Public / UserLoggedIn / AdminLoggedin ?

2010-01-11 Thread Alexandru Ciobanu
is actually very simple in cake. Write your layouts in views/layouts/ . In your app_controller beforefilter() check for logged in user and set the desired layout: E.g. $user = $this->Auth->user('group_name'); // or whatever if($user == 'user'){ $this->la

Re: how to setup 3 distinct Layouts: Public / UserLoggedIn / AdminLoggedin ?

2010-01-11 Thread danashan
I too would love this information. On Jan 9, 12:16 pm, kyle wrote: > Im new to cakephp but I love the concept thus far. I understand how to > create views and change the default layout but its unclear to me how > to make different layouts with different images and css. > > My q

Re: how to setup 3 distinct Layouts: Public / UserLoggedIn / AdminLoggedin ?

2010-01-10 Thread Chad Smith
Kyle, Sure you could use theme's but I typically don't. When developing the sites like http://www.countycriminal.com, http://theeasyapi.com, and many others I have a sharedHeader.ctp, and sharedFooter.ctp in the views/elements folder. Then within the layouts I have: admin.ctp

Re: how to setup 3 distinct Layouts: Public / UserLoggedIn / AdminLoggedin ?

2010-01-10 Thread majna
http://book.cakephp.org/view/488/Themes On Jan 9, 9:16 pm, kyle wrote: > Im new to cakephp but I love the concept thus far. I understand how to > create views and change the default layout but its unclear to me how > to make different layouts with different images and css. > >

how to setup 3 distinct Layouts: Public / UserLoggedIn / AdminLoggedin ?

2010-01-09 Thread kyle
Im new to cakephp but I love the concept thus far. I understand how to create views and change the default layout but its unclear to me how to make different layouts with different images and css. My question is... I want to build an application that is designed like the following... LAYOUT1

Re: Share Javascripts and CSSs in various layouts

2009-12-12 Thread kdubya
Why don't you just use the standard helpers? i.e. In each of your layouts use the html and javascript helpers to include the .css and .js files you need, like below: app/views/layouts/layout_x.ctp ... css('common_css_file')?> link('common_js_file', true)?>

Re: Share Javascripts and CSSs in various layouts

2009-12-12 Thread j0n4s.h4rtm...@googlemail.com
require() ? http://github.com/ionas/sna/blob/master/www/app/views/layouts/settings.ctp http://github.com/ionas/sna/blob/master/www/app/views/layouts/fullscreen.ctp On Dec 11, 7:22 pm, thomaus wrote: > Hi there, > > I have to share the same Javascripts and CSSs for various layouts so I

Re: Share Javascripts and CSSs in various layouts

2009-12-11 Thread Mukhamad Ikhsan
i found someone write helper for that http://bakery.cakephp.org/articles/view/asset-mapper i create some modification to support bottomscript and bottom codeblock (in case need script that load on the end of the page). also change asset rule action with regex filter. and sometimes we need to def

Re: Share Javascripts and CSSs in various layouts

2009-12-11 Thread thomaus
The problem is that not all the pages will have the ame structure, some will call header, some not, ... but yes it's feasible. This aid, I'd like to know how to share CSS and JS. On Dec 11, 7:57 pm, pomares wrote: > How about creating a custom layout and calling it from the controller > with: $t

Share Javascripts and CSSs in various layouts

2009-12-11 Thread thomaus
Hi there, I have to share the same Javascripts and CSSs for various layouts so I created an element called "css_js.ctp" and I call it in each layout this way : charset(); ?> element("css_js"); ?>

Re: Views/layouts/js folder

2009-12-01 Thread Martin Westin
, though. /Martin On Dec 1, 1:40 pm, Dave wrote: > I believe that is there so when you are coding your layouts, if you link to > js/whatever.js it will redirect to the proper app/webroot/js folder > > > > On Tue, Dec 1, 2009 at 7:01 AM, thomaus wrote: > > Hi, > > >

Re: Views/layouts/js folder

2009-12-01 Thread Dave
I believe that is there so when you are coding your layouts, if you link to js/whatever.js it will redirect to the proper app/webroot/js folder On Tue, Dec 1, 2009 at 7:01 AM, thomaus wrote: > Hi, > > Just a simple question. I can't figure out why is there a default > Views/l

Views/layouts/js folder

2009-12-01 Thread thomaus
Hi, Just a simple question. I can't figure out why is there a default Views/layouts/js/ folder in Cake. I thought that all the Javascripts should go into webroot/js/ Does anybody know? Thanks in advance. Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: Plugin views vs. plugin layouts - inconsistencies in folder paths?

2009-11-17 Thread Jamie
for a plugin would also be within / > app/plugins/[plugin name]/. However, Cake expects plugin layouts to > look something like this: > > /app/views/plugins/[plugin name]/layouts/ > > This strikes me as pretty silly. Why should the layout files for a > plugin lie outside of th

Plugin views vs. plugin layouts - inconsistencies in folder paths?

2009-11-17 Thread Jamie
be within / app/plugins/[plugin name]/. However, Cake expects plugin layouts to look something like this: /app/views/plugins/[plugin name]/layouts/ This strikes me as pretty silly. Why should the layout files for a plugin lie outside of that plugin's directory? Plugin files should be self-

Re: How to use multiple layouts.

2009-10-23 Thread BeerMan
Thank you both very much. I had no idea about both solutions. -Beer On Oct 23, 10:06 am, jacmoe wrote: > You can also just put var $uses = array(); in the controller - no need > to make a model then. :) > > On Oct 23, 2:10 pm, mike karthauser > wrote: > > > create a model for simple page and ad

Re: How to use multiple layouts.

2009-10-23 Thread jacmoe
You can also just put var $uses = array(); in the controller - no need to make a model then. :) On Oct 23, 2:10 pm, mike karthauser wrote: > create a model for simple page and add $useTable = false; which means you > wont need the db. > > regards > mikek > > On Fri, Oct 23, 2009 at 11:31 AM, Bee

Re: How to use multiple layouts.

2009-10-23 Thread mike karthauser
create a model for simple page and add $useTable = false; which means you wont need the db. regards mikek On Fri, Oct 23, 2009 at 11:31 AM, BeerMan wrote: > > Hey all, > I have a very stupid question. I have a default.ctp which all the > pages except the homepage will be rendered using this vie

How to use multiple layouts.

2009-10-23 Thread BeerMan
Hey all, I have a very stupid question. I have a default.ctp which all the pages except the homepage will be rendered using this view file. So the homepage will not be using that default layout and contains no data that needs a database. I created a different layout for the homepage named homepage

Using CakePHP Layouts outside of CakePHP

2009-09-09 Thread Jesse
I'm wondering if anyone else has this problem and has come up with a solution. Before my company started migrating some of our new development to CakePHP we used just straight PHP development. Mostly pretty ugly but it got the job done. Most of our templates were a simple and footers were t

Re: Using layouts with themes

2009-07-16 Thread djfingers
I got it to work, there was some other code interfering in some unpredictable ways, when that was cleaned up the theming worked. It's pretty nice to be able to theme and use different layouts now. thanks for the css tip, I will probably update the layout code to use that html css helper

Re: Using layouts with themes

2009-07-16 Thread shahgeb
uld work. > > You can call custom css for specific page by placing in the ctp file: > css('empty')); ?> > > Hopefully it helps > > On Jul 16, 5:19 am, djfingers wrote: > > > I have implemented themes on my site but I'm having trouble getting > > l

Re: Enumerate CakePHP Layouts

2009-07-16 Thread Richard
Well, to list the items in the directory, maybe use the ls method of the Folder class. http://api.cakephp.org/class/folder#method-Folderls To store names in the database, I'd create a table: layouts(id, name, template, created, updated); where template refers to the *.ctp file. I'

Enumerate CakePHP Layouts

2009-07-16 Thread DatacenterHellas
Hello all. I like to create a CMS that will hold many layouts depeding on a page content. e.x. : If the page has a layout for the mane page and then the web site owner will deside to have another layout for the offers to be able to cage to new layout, and if after three months will need a new

Re: Using layouts with themes

2009-07-15 Thread ramzwatcher
Did you place the css files at webroot? That should work. You can call custom css for specific page by placing in the ctp file: css('empty')); ?> Hopefully it helps On Jul 16, 5:19 am, djfingers wrote: > I have implemented themes on my site but I'm having trouble get

Using layouts with themes

2009-07-15 Thread djfingers
I have implemented themes on my site but I'm having trouble getting layouts within themes to work. Right now only the default layout with any given theme is being used. Can layouts work within themes? If so, are there any special things that need to be coded. Shouldn't $th

Re: adding css/layouts custom paths to cake

2009-04-21 Thread majna
t; Having some troubles... > > > i defined an additional view path > > > $viewPaths = array(CAKE_CORE_INCLUDE_PATH .'\shared items\views'); > > > then i created this directory > > > \shared items\views\layouts > > > i moved the "HeaderFooter.ct

Re: adding css/layouts custom paths to cake

2009-04-21 Thread majna
; > > then i created this directory > > \shared items\views\layouts > > i moved the "HeaderFooter.ctp" layout under this new directory > > but cake says "missing layout"... > > On 20 Apr, 20:38, majna wrote: > > > add to config/bootstr

Re: adding css/layouts custom paths to cake

2009-04-21 Thread Ernesto
Having some troubles... i defined an additional view path $viewPaths = array(CAKE_CORE_INCLUDE_PATH .'\shared items\views'); then i created this directory \shared items\views\layouts i moved the "HeaderFooter.ctp" layout under this new directory but cake says "miss

Re: adding css/layouts custom paths to cake

2009-04-20 Thread majna
add to config/bootstrap.php define('CSS_URL', 'my_css_directory/'); for layouts, use theme view, or add additional VIEW paths in bootstrap.php On Apr 20, 11:28 am, Ernesto wrote: > Hello. > > is there any way to add css and/or

adding css/layouts custom paths to cake

2009-04-20 Thread Ernesto
Hello. is there any way to add css and/or layouts custom paths to cake? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To u

Re: What's the usage of app\views\layouts\js?

2009-03-27 Thread Brendon Kozlowski
->renderAs($this, 'js') in > > controller. It will set appropriate content-type header and layout/ > > view subfolder. So Cake will look for layout for such request not in > > views/layouts but in views/layouts/js. Same for views, instead of > > views/contr

Re: What's the usage of app\views\layouts\js?

2009-03-27 Thread brian
> you should use $this->RequestHandler->renderAs($this, 'js') in > controller. It will set appropriate content-type header and layout/ > view subfolder. So Cake will look for layout for such request not in > views/layouts but in views/layouts/js. Same for views, instead of

Re: What's the usage of app\views\layouts\js?

2009-03-26 Thread Dr. Loboto
look for layout for such request not in views/layouts but in views/layouts/js. Same for views, instead of views/controller target folder will be views/controller/js On Mar 26, 8:35 pm, joshua wrote: > Did anybody know the useage of this folder? >

What's the usage of app\views\layouts\js?

2009-03-26 Thread joshua
Did anybody know the useage of this folder? -- Thanks Joshua --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this g

Re: Layouts and Elements

2009-03-18 Thread rossjha
Thanks for getting back to me. I think i'm going to try the layouts for now and see where i go. Cheers On Mar 18, 12:39 am, brian wrote: > If you set a var in the controller you'd still need to test in the > view whether or not to include the element, so it wouldn't be

Re: Layouts and Elements

2009-03-17 Thread brian
. Not very DRY, though. Unless both views just included elements--one with, and one without the comments stuff and both including a Post display element. On Tue, Mar 17, 2009 at 1:01 PM, ross.hagg...@googlemail.com wrote: > > Hi > > Just thinking how i can organise my layouts and eleme

Layouts and Elements

2009-03-17 Thread ross.hagg...@googlemail.com
Hi Just thinking how i can organise my layouts and elements. If i have some specific functions e.g. a comments form which can only be completed by the post owner, how should i place this in the post view? Should i create a separate layout or create an element and have a conditional statement

Re: $ajax->form code generation issues in ajax layouts

2008-12-08 Thread ridwan arifandi
no, i dont use jquery helpers. just embed jquery into default layout, and write some ajax code ridwan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goo

Re: $ajax->form code generation issues in ajax layouts

2008-12-08 Thread najnarp
t; application, first i used cakephp ajax tag and i dont like it. so i'm > using jquery and i'm very satisfy with it > > On Dec 8, 12:35 pm,najnarp<[EMAIL PROTECTED]> wrote: > > > I don't see the right code being generated when using ajax layouts. > > The Ev

Re: $ajax->form code generation issues in ajax layouts

2008-12-08 Thread ridwan arifandi
27;t see the right code being generated when using ajax layouts. > The Event.Observe code is not getting generated. With default layouts > I can see the right code coming out. > > E.g. I see the but the javascript after that for > Event.Observe is missing > > I put some debug in

$ajax->form code generation issues in ajax layouts

2008-12-08 Thread najnarp
I don't see the right code being generated when using ajax layouts. The Event.Observe code is not getting generated. With default layouts I can see the right code coming out. E.g. I see the but the javascript after that for Event.Observe is missing I put some debug in the Javascript h

Re: Email layouts not working

2008-11-22 Thread RyOnLife
Ah! Thanks Adam. -- View this message in context: http://n2.nabble.com/Email-layouts-not-working-tp1564302p1566470.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Email layouts not working

2008-11-21 Thread Adam Royle
You need to put your email layout in: views/layouts/email/text/default.ctp On Nov 22, 11:57 am, RyOnLife <[EMAIL PROTECTED]> wrote: > Hello, I am having two problems with email: > > 1.) The email (welcome.ctp) is sending, but the layout (default.ctp) is not > being included.

Email layouts not working

2008-11-21 Thread RyOnLife
t;from; $this->Email->to = $new_user[0]['User']['email']; $this->Email->subject = 'Welcome to mysite.com'; $this->Email->template = 'welcome'; $this->Email->layout = 'default'; $this->Email->sendAs = 'text'; $this

Re: Noob questions regarding layouts and static content

2008-11-14 Thread thatsgreat2345
Yes cake can do that. Essentially you will have your news view, and it will have that layout like built in. Then in the controller after doing some sort of check to see what variable in the url has been set , like a number that corresponds to a news article, then the controller will be like hey m

  1   2   3   >