I haven't had a chance to check this out in any detail and since there
are multiple people touching this app, I just wanted to ask: is it
possible to circumvent the Auth component by creating a request via a
JSON call (with parseExtensions enabled)?
(I know I'm being really lazy here since I
On Wed, Aug 20, 2008 at 7:03 PM, Peter Weicker [EMAIL PROTECTED] wrote:
Thank you both. I decided to try installing Cake on my ISP instead of
running it on my own PC. They asked me to send in photo ID before
they'd let me use the system services I'd need to complete the
install. Not very
Lance is correct, this is a CSS issue and not specific to CakePHP.
If you look at the HTML being spit out by a $form-input is:
divlabelinput
If you're doing type=radio, then it's just multiple label/input inside
those DIVs.
To make everything horizontal, just make sure all the elements are
If you're on linux, I'd create two separate webroot folders and then
just symlink your extjs folder.
On Tue, Jul 22, 2008 at 9:19 AM, inma [EMAIL PROTECTED] wrote:
Thanks to both for your answers!
leo:
I want to structure the folders this way because I have some different
applications into
On Tue, Jul 22, 2008 at 6:30 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have a user model which requires validation for multiple forms.
This is what i have so far which covers adding a new user:
I also have edit, reset password etc that i need to validate. Any
help would be
Normally you have a user object stored in the session that's used to
authenticate. Just include that in any query that needs to be locked
down to a specific user.
On Sun, Jul 20, 2008 at 3:22 PM, [EMAIL PROTECTED] wrote:
I searched the archives of this group and never found an answer to
this
I've pasted an alternate approach to the bin (I recommend you do so
with large code pastes)
http://bin.cakephp.org/view/1609330285
You'll see the approach is a little different in that I have an actual
Component (not an abstract class) that is clearly labeled as a factory
component and attached
Normally I'd point you to the appropriate place in the manual but
since it's a little FUBARd at the moment, I'll provide you with some
insight:
You'll want to use the specific input type for your field instead of
relying on the input method.
For example:
Label http://?php echo
You have a couple ways to do so.
1) use the startup method, which gets passed the controller as its
first argument. Store a reference to it within the object.
2) App::import('Component', 'Session'); and then you should be able to
instantiate the session object and use it that way.
On Sat, Jul
I've run into similar issues and have raised the issues with Nate
Abele. There's a ticket open for a subset of these problems where the
'prefixName'=true may or may not need to be specified depending on
whether you are in a prefix or not. To these specific points you
mention, can you create test
On Wed, Jul 16, 2008 at 11:33 PM, Baz L [EMAIL PROTECTED] wrote:
BTW, what 'critical' data could you possibly need in the User session?
If you're displaying stuff on the website, why don't you read the
user_id from Auth and then the rest of the data from the actual table,
if it's critical? If
It doesn't have SOAP support out of the box but might get you on your way.
http://mark-story.com/Posts/view/introducing-the-webservice-behavior
-Jonathan
On Wed, Jul 16, 2008 at 11:07 PM, Dave [EMAIL PROTECTED] wrote:
Hi,
I'm new to CakePHP and it's great. I feel like cake might make it
This wasn't easy to track down but apparently there are 5 reserved
class names in PHP:
__PHP_Incomplete_Class, stdClass, exception, php_user_filter and.
Directory!!
http://ca3.php.net/manual/en/reserved.classes.php
So, use another name.
On Thu, Jul 17, 2008 at 7:11 AM, web [EMAIL
Folder is a CakePHP class name. I'd use a more specific name like
ProjectDirectory.
(Although I wish we had PHP namespaces or that the Cake classes were
pseudo namespaced or that model names required Model to the end of
them. eg: DirectoryModel extends AppModel (just like controllers,
btw: one thing I forgot to mention is to check how you've set up your
routes. One thing that Nate explained is that it has to include the
'prefixName'=true.
For example, with a /members/ prefix you'd do:
Router::connect('/members/:controller/:action',
array('prefix'='members', 'members'=true));
I'm sure the devs have their reasons and they can explain it.
My personal thoughts are that they had to choose one or the other.
Either the model has last say or the behaviors do. To say the model
could always change the data afterwards like models have minds of
their own and could overwrite
On Tue, Jul 15, 2008 at 6:04 AM, Meloy [EMAIL PROTECTED] wrote:
But how do I add an image to the HTML-part?
I tried to do something like this in the layout:
?php e($html-image('logo.gif')); ?
But it just gives me an img src='... but not the actual image.
What am I doing wrong?
You're not
On Tue, Jul 15, 2008 at 2:25 PM, Lance Willett [EMAIL PROTECTED] wrote:
but the CakePHP Email component wasn't really designed to do this.
@Jonathan Snook
Sending images in HTML email with the Email component works just fine;
you don't need to send it as an attachment. And yes, if you have
Anyone know how to refresh the user record? Is it simply a case of
setting the Auth Session User var?
Looking at the Auth source, it populates the key 'Auth.' .
$this-userModel, or Auth.User by default. You may want to try just
doing $this-Auth-login() again from the edit page (be sure to
It's because the connection manager specifically looks for a $default
property in the DATABASE_CONFIG. Why rename it? (a few classes seem to
be tied specifically to $default so I'd recommend not changing it)
On 7/14/08, Mech7 [EMAIL PROTECTED] wrote:
When i bake (cake bake omg) an app.. it
Probably your best bet is to create your own helper that uses the base
elements like $form-text and $form-error. Wrap your own HTML around
those. Take a look at how $form-input does it and model yours around
it.
-Jonathan
On 7/14/08, Tallbrick [EMAIL PROTECTED] wrote:
I have been hitting
On 7/13/08, RichardAtHome [EMAIL PROTECTED] wrote:
It looks like the Users model is only being read once at login and the
details stored in a session (not checked the cake code, but that would
match the behaviour I am experiencing).
Basically, the edit is working (ie, database gets
Put the variable in the session and read it From there on the second
page.
On 12-Jul-08, at 11:46 AM, gravity [EMAIL PROTECTED] wrote:
Hi,
I have a PHP script that does some processing, and stores an error
message as a variable. The script then redirects to another script
with the error
I suspect it's because the colon is normally used to designate a named
argument. You may be able to change the named argument delimiter,
which might allow this to work. Honestly, I'd just change your route
to use a slash (/) or you may be able to get a hypen to work.
Alternatively, set ID to be
If that's a direct copy paste you have a space in your Model name:
class Directory extends Appmodel
{
var $name= 'Directory ';
var $primaryKey = 'directory_id';
}
O=O var $name= 'Directory[SPACE]';
--~--~-~--~~~---~--~~
You received this
On 7/10/08, babar [EMAIL PROTECTED] wrote:
I had converted my application into cakephp 1 to cakephp 1.2, in
cakephp 1 i can get the controller object and calling function like
this calling $this-controller-H2Auth-getPracticeName(), now here
in cakephp 1.2 when i do this i get the
That's excellent. Who's code is this originally? David's? I'd like to
add that to the Book.
On 7/10/08, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
http://bin.cakephp.org/saved/33005
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
table names are the plural of the model name by convention (by which I
mean you can change it)
Admittedly, I've often wondered why models don't use the naming
convention like all other objects: ExampleModel extends AppModel. It'd
help with namespacing. (Of course, by now, it's probably too
btw: if you're doing what I think you're doing, I'd love to see the
final result. To get login working for a PHPBB integration, I ended up
just using curl to do a post request and then pass the session cookies
onto the end user. A little hackish but it worked.
On 7/10/08, RichardAtHome [EMAIL
Do you have a displayField set or a field called name?
On Wed, Jul 9, 2008 at 2:02 AM, kaushik [EMAIL PROTECTED] wrote:
Thank you for this help.As per your advice i have changed my
controller to -
$categories = $this-Product-Category-find('list',
array( 'conditions' = array('isActive' =
Are you sure you have content in that table? (although it'd normally
return an empty array rather than false but something to think about)
Secondly, maybe use a different variable besides $data. It shouldn't
matter but I'd be likely to try it anyway.
On Wed, Jul 9, 2008 at 8:57 AM,
Well, I think including something that is browser-specific is not a
good idea. Not everyone uses Firefox. Secondly, what's so hard about
adding it by hand to your layout file? It's just one line.
Actually, it's not FF specific. The auto-discovery is a feature that
has found its way into
That's not really a WTF. It's a case of there bing a File class
already. So trying to bake a model of the same name is going to give
you problems. I'd choose a different name.
-Jonathan
On 7/9/08, benjam [EMAIL PROTECTED] wrote:
Apparently the problem was that I had a table called 'files',
skelooth: An edge case should by no means include 'printing a webpage'.
Chris: I understand your frustration, but please look at the problem
objectively.
Looking at this objectively:
When it comes to printing, a common expectation is that what is
printed will look close to what the user
Did the .htaccess files get copied properly?
Jonathan // Im sure that the directory is my local cakephp. But the
wierd thing is that with http://localhost/ i get a directory listing
and the index.php file is in that directory. That should point to
mod_rewrite not being enabled but when i
That's cool and all, but still...which solution is better in this case?
I'd probably use the counterCache since it'd simplify queries and it's
handled for you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
You could also do something like this in your AppController:
if (env('SERVER_NAME') == 'abstractpaints.com') {
$this-layout = 'abstract';
}
Or even simplify it like,
$this-layout = str_replace('.', env(SERVER_NAME));
(although my syntax is probably a little off there)
On Tue, Jul 8, 2008
App::import doesn't replace Controller::uses. It replaces uses(). But
$uses loads all models specified whether used or not. If your
relationships are defined well, it's usually unnecessary to specify
anything for Controller::uses.
On Tue, Jul 8, 2008 at 4:26 PM, Sam Sherlock [EMAIL PROTECTED]
Seems like there might be a page with some extra whitespace. Check to
make sure there's no files with extra space after the closing ?.
On Tue, Jul 8, 2008 at 6:29 PM, MauroEC04 [EMAIL PROTECTED] wrote:
Debug mode level 2 just show de mysql dump (with no errors) and a
Cannot set header
You'd want to get rid of the $belongsTo relationship. This is just a
HABTM relationship (the composite primary key here shouldn't be a
problem, although I don't believe Cake will enforce it.).
On Mon, Jul 7, 2008 at 6:38 AM, zpon [EMAIL PROTECTED] wrote:
I have a sql table which only contains
Are you sure you're hitting the local PHP install and not the local
IIS install? with the index.php file in webroot, it'd be unlikely to
get a directory listing.
On Mon, Jul 7, 2008 at 4:07 PM, Hitsugaya [EMAIL PROTECTED] wrote:
Hello all, im a new CakePHP user. Im setting up for my first
Do you get anything if debug mode is set to 2? any error messages?
On Mon, Jul 7, 2008 at 10:25 PM, MauroEC04 [EMAIL PROTECTED] wrote:
Hello.
Just some hours ago, I've spent my time migrating from CakePHP 1.2
beta to RC2.
Now, I'm having troubles with de Controller::redirect() method. All
1) add a behaviour
2) add a field to your table
It seems to be built into CakePHP now:
http://book.cakephp.org/view/490/countercache-cache-your-count
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
Go back to how you originally had it and then use franky's advice and
just pluralize the table name.
On Fri, Jul 4, 2008 at 10:10 AM, Sai Krishna [EMAIL PROTECTED] wrote:
It changed the file names accordingly
i.e
application_tool_controller is controller and class name is
I had built a seemingly stable CakePHP app when one day, out of
nowhere, it began to display no errors and get itself stuck in an
infinite recursion loop anytime I add a component/model/helper -- ANY
class that doesn't exist.
While I would agree that that the infinite recursion is bad and
Am I correct in assuming file caching doesn't happen unless you have
debug=0?
I believe that to be a correct assumption.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send
But there is other annoying moment with this - email headers are shown
in email body
I suspect with the safe mode, custom headers are no longer possible,
leaving you to send messages using plain syntax. Considering your
environment, the built-in EmailComponent probably won't solve your
needs.
You can submit it but I don't think they'll be much help. I feel like
this is environment specific.
Between lines 1 and 2 are mostly file includes and function/class
declarations. There's very little that would would take 9 secs to
load. However, these delays could be related to delayed file
Even built-in file caching can be pretty quick depending on how much
uniqueness there is between page refreshes. The page cache read occurs
very early on in the Cake process. (I still wish that the built-in
page caching allowed for keying off more unique properties besides the
URL such as cookies
I think I'd say somewhere in the middle. I think much of the Lord of
the Rings intro is okay but maybe a little verbose and not directly
applicable to anybody's project. Using an example like a standard
User/Group permission system would be easier to understand.
I like the way the section is
that any good
documentation should have.
Thanks,
-Jonathan Snook
--~--~-~--~~~---~--~~
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 group
Create an Activity model that stores that info. Just store a pointer
to the resource in the activities table so that you can link to it.
On Tue, Jul 1, 2008 at 3:47 PM, Kyle Decot [EMAIL PROTECTED] wrote:
I want to create an activity feed for my admin panel so I can see
recently submitted
Yes, that's correct. It now uses a period instead of a slash.
On Tue, Jul 1, 2008 at 1:50 PM, Bryan D [EMAIL PROTECTED] wrote:
Thanks guys, that works perfectly. I take it the Player.id form is
now preferred over Player/id ? I ported my app from Cake 1.1 to 1.2,
and probably missed a few
On Sun, Jun 29, 2008 at 6:19 AM, Mr. Matt [EMAIL PROTECTED] wrote:
I believe this should work:
?php echo $form-input('Player/id', array('type' = 'text')); ?
Just to clarify, it's Player.id (notice the . instead of the /)
--~--~-~--~~~---~--~~
You received
When using two numbers, the first number defines the OFFSET, the
second number is the LIMIT.
In a findAll query, look to the PAGE parameter:
findAll(string $conditions, array $fields, string $order, int $limit,
int $page, int $recursive);
The page will automatically set the offset to $page *
Post it to trac. If at all possible, including a test case and/or
patch would be helpeful as well.
On Mon, Jun 30, 2008 at 10:12 PM, ray [EMAIL PROTECTED] wrote:
Hi there... I tried the irc room but didn't get a response.
I believe there's a new bug that was introduced with the latest
If you have admin routing set up, you'll get an error page: Trying to
access private method in class
In your core.php you should have:
Configure::write('Routing.admin', 'admin');
The same thing will happen when you set up prefix routing:
Router::connect('/admin/:controller/:action/*',
But anyway, why would you like to validate your forms twice? That's
error-prone, and remember you CANNOT trust client side validation.
The purpose is to provide a better user experience for the end user
and lessen the server load. Why force the user to sit through a server
refresh when it can
Btw: I had to look back on my code since I've been doing the select
boxes and here's the code I've got:
Controller (you could of course add restrictions):
$this-set('companies', $this-Event-Company-find('list'));
View:
echo $form-create('Event');
echo $form-input('company_id');
echo
Yeah, because of your post, I've been careful to mention the whole
mime-type thing. :)
Has a ticket been opened to add custom media types to the MediaView?
On Thu, Jun 26, 2008 at 5:45 AM, dr. Hannibal Lecter
[EMAIL PROTECTED] wrote:
How about some shameless plugs? :)
function login () {
$this-layout = 'login';
}
On Thu, Jun 26, 2008 at 7:39 AM, RJ [EMAIL PROTECTED] wrote:
Hi,
How should i explicitly exclude the default layout from my login page.
For the other views , i need the default layout
--~--~-~--~~~---~--~~
You
You'll likely find it easier to code that structure out manually:
tr
td align=right valign=top class=tblloginTitle :/td
td?php echo $form-text('title', array('size'= 40')) ?
?php echo $form-error('title') ?/td
/tr
If you plan to do this a lot, make your own helper that
So, to get back to my original point: there is nothing stopping any
one from contributing documentation to the CakePHP manual except
themselves.
I think the biggest hurdle to contributing is just having the
confidence in feeling that what is being documented is the correct way
to do things.
Like Grant suggested, use the HEREDOC syntax.
http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
On Wed, Jun 25, 2008 at 4:01 AM, Grant Cox [EMAIL PROTECTED] wrote:
Don't forget you can also use
$javascript = END
...all your js here...
END;
Place the files in your app folder but outside of webroot. Then create
an action that people can use to access a file.
http://example.com/downloads/get/myfile.zip
Then, either try using the MediaView [1] (as long as your mimetype is
supported) or build you own simple file reader (look into
into the book? Maybe in http://book.cakephp.org/view/66/models under
a separate heading ORM?
Ralph
On Jun 24, 7:49 am, Jonathan Snook [EMAIL PROTECTED] wrote:
That's not really the benefit, per se. How do you work with data in
Java? Using objects and Java data types, of course. The ORM
Oh, and I should say, the next time I'm in Sask, I'll hit you up for
that beer. ;)
On Wed, Jun 25, 2008 at 11:01 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Buddy, if you're ever make your way through Saskatoon give me a shout
and I'll buy you a beer.
Given your consent, could we
No problem. It's not a big deal. It is a bit misleading that the Cake
home page states that it supports ORM tho' :-(
I disagree. I think that you are looking for a narrowly defined
approach for OR mapping. The approach that you describe is quite
similar to how CakePHP does it, even though the
$toy = new Toy();
$toy.set(array(
'size' = 'value',
'price' = 'value',
'weight' = 'value',
);
$toy.save();
That'll work in CakePHP. How is that conceptually different?
I realized my PHP is wrong (hey, this is off the top of my head):
$toy = new Toy();
$toy-set(array(
'size' =
On Tue, Jun 24, 2008 at 8:36 AM, Howie [EMAIL PROTECTED] wrote:
I guess I'm being a little pendantic about the Model, but then again,
I did lose time trying to understand it, as I's asumed it did much
more than it appears to do. What happens under-the-hood is great, and
keeps the code clean,
Warning: mysql_connect() [function.mysql-connect]: Access denied for
user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\cake
\cake\libs\model\dbo\dbo_mysql.php on line 100
Make sure that you've specified the proper username and password
(that's what this error message is
While I haven't tried it, maybe give this a go in your action:
function myaction(){
$this-helpers[] = 'Time';
}
(I'm not entirely sure when helpers are instantiated but that seems
like a viable solution.
--~--~-~--~~~---~--~~
You received this message because
Hey that works. Thanks. I'm surprised this is not documented though.
There, now it is: http://manual.cakephp.org/view/99/introduction
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to
the point your making and of course, I'm
okay with it being on or off the home page (of course, I like getting
linked. ;) ).
-Jonathan Snook
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post
Joel, I suspect he's running cake fine.
Benny, I think you need to just continue to learn more about CakePHP
using the cookbook http://manual.cakephp.org and move forward in
trying to build your application.
On Fri, Jun 13, 2008 at 2:24 AM, Joel Perras [EMAIL PROTECTED] wrote:
Sounds to me
A am a bit shocked that it is a feature when å is the same as a in
MySQL. That sounds just plain wrong to me. If it had been so for
utf8_some_special_ci, fine, but not for general (the default default)
collations. To me that would be like PHP saying (1 == 1.2) is true
because it is close
I suppose the book is being fair when it says There is a lot that it
doesn't do for you but it will get you started. Hmm, more like get
you frustrated and ready to move on to a fully-featured working
library. I will propose a 'diplomatic' amendment to the book.
I understand why you were
I have to say this thread is a little disappointing. Not because it
takes a direct stab at knocking the code in the core, but rather that
it shows a spirit that is more about taking than it is about
giving.
I would disagree with your assessment of the conversation.
We're debating two key
On Thu, Jun 12, 2008 at 12:52 PM, mwcbrent [EMAIL PROTECTED] wrote:
I'm looking to setup a system that will do rewrites, this is
similar to myspace or other sites that allow you to setup a page and
change the url to something personalized.
www.mysite.com/user/232434
to
On Thu, Jun 12, 2008 at 1:31 PM, Gwoo [EMAIL PROTECTED] wrote:
But since we have the component in the core, it's
not going anywhere, and we are not going to include 3rd party
libraries, can we do something to match those features without
bloating Cake. My goal is for the Email component to
The reason I didn't recommend your approach is because the user slugs
are user definable. What if I wanted to call myself 6? (I am not a
number...) You have to set a restriction on user slugs to include a
non digit character so as not to create issues. Your user slugs are
restrictive in that NO
I'm trying to figure out exactly what you've got going on:
When you click save, do you have an ajax call that's meant to save the
data to the server? If you take the ajax call out and just leave Fck,
does it work?
As far as I know, Fck copies the content from the editor to a hidden
textarea on
So many sites though, (like those found in the 'CakePHP in the wild'
page) have stripped the logo out, and leave no credit or
acknowledgment to the foundation.
We take them out because we build sites that are about the solution,
not the tools we use to build them. It's the same reason you
I am trying to use the new email component in cake 1.2, but am having
problems using it with an authenticated SMTP server. I am getting the
following error:
503 5.5.2 Send hello first
Not to knock the core developers but the email component still needs
some work, especially in support for
I think it may have been referring to the use of LIKE queries compared
to FULLTEXT queries. And to that, I'm not sure which is faster
although I assume the latter. It may be interesting to look at Lucene.
(btw: a CakePHP implementation of Lucene would be awesome.)
On Tue, Jun 10, 2008 at 12:33
I think it'd be more appropriate to be explicit:
ini_set('default_charset', 'utf-8');
Alternatively, you can set the charset manually using:
header('Content-type: text/html; charset=utf-8');
-Jonathan
On Tue, Jun 10, 2008 at 1:34 PM, Pierre MARCOURT
[EMAIL PROTECTED] wrote:
Thanks Marcin,
I
On Tue, Jun 10, 2008 at 3:21 PM, Marcin Domanski [EMAIL PROTECTED] wrote:
I don't think that a cake implementation is needed Zend_Search_Lucene
is awesome, and it doesn't have any dependencies from Zend Framework.
I wasn't sure but that's great to know. It's be great to see a model
behavior
On Tue, Jun 10, 2008 at 3:21 PM, Marcin Domanski [EMAIL PROTECTED] wrote:
I don't think that a cake implementation is needed Zend_Search_Lucene
is awesome, and it doesn't have any dependencies from Zend Framework.
I wasn't sure but that's great to know. It's be great to see a model
behavior
How would Cake be able to know that when you pass it a number that
what you really mean is a string?
Cake knows because it's DEFINEd the fields from the database. If it's
VARCHAR, CHAR, or TEXT, treat it as a string.
--~--~-~--~~~---~--~~
You received this
Cake knows because it's DEFINEd the fields from the database. If it's
VARCHAR, CHAR, or TEXT, treat it as a string.
/me smacks himself in the forehead.
I had thought that was the case, but is that *really* what is going
on? It looks to me like Cake is not honouring that for whatever
On Wed, Jun 4, 2008 at 6:11 PM, [EMAIL PROTECTED] wrote:
Here is my problem though: I don't want to impact my users' sites,
meaning I want to keep their URLs intact and continue to use the same
underlying database containing sites and pages (where a record in the
page table has a URI, a
as for the whole topic- i'm okay with it as long as proper tickets
will be created :) if not - don't think that stuff will be implemented
even with feedback.
Many of the features seem to be getting addressed. I was using the
manual last night and the speed was much improved.
I agree that
That's usually a sign that you forgot to include the Time helper at
the controller.
eg: var $helpers = array('Time');
On Mon, Jun 2, 2008 at 1:41 AM, gokujou [EMAIL PROTECTED] wrote:
but all I get is this as an error:
Notice (8): Undefined variable: time [APP/views/posts/index.ctp, line 10]
On Tue, May 27, 2008 at 12:11 PM, bondo [EMAIL PROTECTED] wrote:
I'm having problems using the native email component using templates.
It only seems to send messages to certain email addresses. I'm not
sure if this is a Cake problem or a web host (hostmonster) problem.
For example, if I send
On Sun, May 25, 2008 at 1:38 AM, robert123 [EMAIL PROTECTED] wrote:
Can anyone highlight how to make $session-write('Config.language',
$locale); works?
In thinking through your problem, I think the better solution is to
have users redirected through an uncached page that sets the language
and
echo $form-input($i.time);
echo $form-input($i.category_id);
Have you tried,
echo $form-input(ModelName.field_name.$i);
I believe this will return everything as an array on the backend that
you can loop through. Mind you, you may have to fill the value in for
those manually.
On Wed, May 21, 2008 at 12:49 AM, Travis [EMAIL PROTECTED] wrote:
Yes, I would like to display the data differently depending on the
attributes passed in.
Then set up three different routes for it, each pointing to its own action
Router::connect('/:controller/:year/:month/:day',
On Wed, May 21, 2008 at 10:07 AM, Joel Perras [EMAIL PROTECTED] wrote:
Shouldn't the default behaviour of this behaviour be that, when a
condition is not satisfied on an associated model condition, then no
data is returned from the find query? If not, then I believe that
this should at least
The PHP 4 method of declaring a variable with the var keyword is
still supported for compatibility reasons (as a synonym for the public
keyword). In PHP 5 before 5.1.3, its usage would generate an E_STRICT
warning.
CakePHP is designed to be compatible with PHP4 as well as PHP5. You'll
have
Try:
$aUserData = array(
'User' = array(
'id' = 4,
'last_login = NOW()'
)
);
On Wed, May 21, 2008 at 6:55 PM, Zifnab [EMAIL PROTECTED] wrote:
I'm trying to figure out how to implicitly make a mysql NOW() call
when doing a model save...here's an example of the code:
1 - 100 of 124 matches
Mail list logo