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
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
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
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
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
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
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-
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
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';
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
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
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
> >
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,
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
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();
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
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
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
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
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
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/
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(
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
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
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
$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:
>
>
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
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
> 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
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
> 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
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
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,
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
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
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
;t figure out
> yet...
>
> In my layouts/default.ctp I have the following code:
>
> if ($session->check('Message.flash')) {
> $session->flash();
> }
>
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.
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();
}
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
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
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
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
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
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
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
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
*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
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
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
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
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
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
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/
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
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
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
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.
>
>
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
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)?>
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
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
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
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"); ?>
, 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,
>
> >
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
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
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
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-
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
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
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
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
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
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
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
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'
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
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
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
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
;
>
> 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
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
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
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
->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
> 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
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?
>
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
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
. 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
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
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
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
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
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
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
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.
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
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 - 100 of 245 matches
Mail list logo