I been reading a lot of discussions on the cakephp mailing list. but, could
not figure out how to do this properly. Maybe this thread will be useful
someday.
I am familiar with the settings for Apache (httpd.conf) and PHP (php.ini),
the only thing i am a bit clueless is the .htaccess file, but coul
On Dec 26, 2007 10:07 AM, Robert Sosinski <[EMAIL PROTECTED]> wrote:
>
> Hello again,
>
> I am having this problem. I have a Thread model and a Post model.
> What is interesting is whenever I have a post that has the same id as
> the thread_id (so, id = 4 and thread_id = 4), cake will no longer a
Here's a tutorial on using the datagrid with cake:
http://www.ntatd.org/mark/?p=29.
Read the comments at the bottom: they point to a discussion that has
more information. I'm working on an update for the tutorial, but
maybe this will help you until then.
hydra12
On Dec 26, 3:03 am, ProFire <[E
Thanks for all the help so far.
The call to action is 'mailer' in the Updater line.
Tested with firebug, no errors shown.
I completely forgot about naming the fields with the model/field
convention. I'll give this a try.
Thanks again, everyone.
>
> On Dec 25, 11:12 pm, rtgwork <[EMAIL PROTEC
Im working on a project that was originally developed by another PHP
developer. He created a helper class to create the main menu in such a
fashion...
Function A. Would actually add the menu items to an array with the
Anchor Tag, URL and a Key
Function B. Would iterate through each item in the a
Thanks for the reply, just had time to look at this today and it
turned out that my problem was with my css path ;P. I tried your
method posted below, but it looks like $this->addScript has either
changed syntax or is no longer working in the version of cakephp that
I'm using (version 1.2.0.5875)
See app/config/core.php or app/config/bootstrap.php
On Dec 26, 1:36 pm, Alfredo <[EMAIL PROTECTED]> wrote:
> Ok, so I know it's not a 100% a Rails port but whats the equivalent
> for the environment.rb file or for the config/initializers folder?
>
> I need a place for application config such as A
Hi Daniel, if you use the link I sent earlier.. you should be able to set up
a quick and easy feed.
Now, about customising it so that each user has a unique URL, you could
follow my earlier recommendation of adding a hash field in your users table.
--
| users |
--
id
username
rss_h
Chris,
Take a look at these[1][2]. Maybe it helps (maybe not)
Regards,
--
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net
[1]
http://digitalspaghetti.tooum.net/switchboard/blog/2487:Discovering_Single_Table_Inheritance
[2]
http://www.ifisgeek.com/tutorials/implementing_single_table_inheritance
That's not gibberish; it's the shell script that's being output to the
console because PHP doesn't know what to do with it. Don't call it from PHP,
the shell script will call PHP itself.
First, add both the dir with the PHP executable and the cake console dir to
your system's PATH.
C:\wamp\bin\ph
Hi Rob,
On Nov 23, 5:15 pm, Rob <[EMAIL PROTECTED]> wrote:
> Running through the Blog tutorial, I noticed that the HTML Title was
> not being output.
>
> I've tracked this down to this line inflash.thtml :-
>
>
>
> Although the other parameters for url, pause, etc are being created
> before call
i presume your id field is auto incrementing. try clearing your id
field ---> $this->data['Model']['id'] = null before issuing a save
query to the model.
cheers,
-k10
http://www.innovatechnologies.in
On Dec 26, 8:07 pm, Robert Sosinski <[EMAIL PROTECTED]> wrote:
> Hello again,
>
> I am having th
Ok, so I know it's not a 100% a Rails port but whats the equivalent
for the environment.rb file or for the config/initializers folder?
I need a place for application config such as API keys and static urls
--~--~-~--~~~---~--~~
You received this message because yo
"Patches are welcome" ;-)
On Dec 25, 9:03 pm, MX <[EMAIL PROTECTED]> wrote:
> It would be very nice if Cake had polymorphism associations.
>
> On Dec 21, 3:09 pm, "subtropolis zijn" <[EMAIL PROTECTED]>
> wrote:
>
> > On Dec 21, 2007 6:04 AM, Chris Hawes <[EMAIL PROTECTED]> wrote:
>
> > > I have f
Also, I'm in the app directory when running the command.
On Dec 26, 1:33 pm, Action <[EMAIL PROTECTED]> wrote:
> I'm using wampserver and cakephp 1.2. I'm trying to run the bake.php
> script from the windows command line.
>
> Here is what I'm typing the command line:
>
> C:\wamp\bin\php\php5.2.5\
I'm using wampserver and cakephp 1.2. I'm trying to run the bake.php
script from the windows command line.
Here is what I'm typing the command line:
C:\wamp\bin\php\php5.2.5\php.exe ..\cake\console\cake bake
This is what is outputted to the window:
###
You can create get RSS set up following the example at the following
link http://jirikupiainen.com/2007/05/30/creating-rss-feeds-with-cakephp-12/
It worked fine for me.
As far as setting up User Based RSS:
If you don't want the user to have to authenticate, I suppose you
could set up a Hash in y
Hi,
Can a model's displayField be a field in a foreign table linked to
that model?
For example:
My database has three tables: songs, versions, and tracks.
Every song can exist in several versions. Every version, in turn, can
be referenced by many tracks. Essentially, the relationship looks lik
yay did it with requestaction() :-)
On 25 Dez., 13:16, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello!
> I'm new to cakephp and i think i need your help. Sorry I know my
> english is bad :-)
>
> I have an application in which users can be members of many events and
> events have many down
Thanks for the response! That sounds easy enough but i am not sure
what the method should look like. My usual login code?
On another note, I thought CakePHP 1.2 is only for production and not
live sites yet? I was under this assumption so I've been coding this
site in CakePHP 1.1
Thanks so mu
I'm not sure if this is the best answer, but you can always add 3
hours to the timestamp before you display/store it. also, you might
want to check out the time helper: http://api.cakephp.org/time_8php-source.html
It may have some useful functions for this.
On Dec 26, 7:28 am, Robert Sosinski <[E
How are you handling the id# generation? is this an auto-increment
field in your database? Also, I'm not sure I'm understanding what you
are seeing. Do you mean that when you try to add a new post who's id
is greater than 4 it just overwrites the data in your database where
id =4 instead of adding
Hello again,
I am having this problem. I have a Thread model and a Post model.
What is interesting is whenever I have a post that has the same id as
the thread_id (so, id = 4 and thread_id = 4), cake will no longer add
new records. It will only overwrite the same record over and over
again (lik
Hello,
I have my webserver in Los Angeles, however I am living in New
Jersey. Is there some way I can make cake set the timezone to Eastern
Standard Time instead of Pacific Standard Time? This way, all
timestamps I put into the database are of my timezone.
Thanks.
--~--~-~--~~
This does also tend to be related to my post on naming conventions in
http://groups.google.com/group/cake-php/browse_thread/thread/35318b04d8a93144/fcffe0e17499f82c?lnk=st&q=#fcffe0e17499f82c
if the class name and the $name value are to be the same, why is this
not the case with Controllers? Is t
Hi guys,
There seems to be something incorrectly happening with model
association calls and the naming of the resulting record arrays. If I
have a Model called LayoutModel with $name = 'Layout', then naturally
all the findAll calls etc will give me a resultset with the array keys
as 'Layout'.
Ho
> How can I resolve this problem :
>
> if I try to connect to my application, it asks me a login and
> password , that's ok !
> I'm now connected to the restricted area , that's ok too !
>
> but now if I open a new window and try to connect to the application,
> it asks me nothing and connects me
Oops! change the "presume" to "you should" ;)
Tarique
On Dec 26, 2007 4:45 PM, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote:
> On Dec 26, 2007 10:57 AM, graphicdefine <[EMAIL PROTECTED]> wrote:
> >
> > Forgive me for my perhaps naive question, but does anyone know how I
> > can offer RSS feeds on
On Dec 26, 2007 10:57 AM, graphicdefine <[EMAIL PROTECTED]> wrote:
>
> Forgive me for my perhaps naive question, but does anyone know how I
> can offer RSS feeds on my site for each individual user? Originally I
> was thinking of attempting to create a password-protected feed, but I
> have never
to create an Aro object try
--> $aro = new Aro()
you might want to look @ this article
http://bakery.cakephp.org/articles/view/real-world-access-control
cheers,
k10
On Dec 26, 1:55 pm, Jonathan <[EMAIL PROTECTED]> wrote:
> Hi, i'm trying to get a permissions manager using acl all together
> w
Hi,
You might want to try firebug to figure out the issue on the client
side. Also you might try and put breakpoints on your server side code
(using a debugger ofcourse) and see what is causing the problem. This
setup works for me most of the times.
cheers,
-k10
On Dec 25, 11:12 pm, rtgwork <[E
Hi everybody !
How can I resolve this problem :
if I try to connect to my application, it asks me a login and
password , that's ok !
I'm now connected to the restricted area , that's ok too !
but now if I open a new window and try to connect to the application,
it asks me nothing and connects m
Hey rtgwork,
I believe you should use this syntax when naming fields:
name="[model]/[field]"
That's how Cake captures the data and store it in $this->data
I would recommend using HTML helper using: $html->hidden("cpu/
primaryhd", array("value" => $primaryhdAll))
If you really really prefer usi
It would be very nice if Cake had polymorphism associations.
On Dec 21, 3:09 pm, "subtropolis zijn" <[EMAIL PROTECTED]>
wrote:
> On Dec 21, 2007 6:04 AM, Chris Hawes <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have four tables: tasks, contacts, documents and companies.
>
> > Multiple tasks can be ass
Forgive me for my perhaps naive question, but does anyone know how I
can offer RSS feeds on my site for each individual user? Originally I
was thinking of attempting to create a password-protected feed, but I
have never done that before and couldn't find any documentation of any
other bakers whom
Hi, i'm trying to get a permissions manager using acl all together
with scaffolding.
I've mapped db tables into classes througth console using bake.php.
All is going good (i mean, i can add, edit, view, view associations,
etc.) until i use "var $components = array('Acl')"
The Aro class in the mode
Hello!
I have searched through the google group looking for an answer for why
Model::Save() may fail sometimes because I'm experiencing the same
problem.
I noticed this pattern that some of them didn't do anything and the
problem solved itself. Just all of a sudden, Model::Save() works. This
was
Hi and welcome to CakePHP!
You should put your javascript files in "app/webroot/js"
After that, you can include all the javascript files in your "views/
layouts/default.thtml". You may have to create this file if it does
not exist. Just do the standard . You may
wish to check out the manual for
Hi All,
I am uploading images through my controller to app/tmp/images,
uploading is working fine.
But when I try to access the app/tmp/images it does not display the
image in the corresponding view.thtml file.
I am using this code for displaying image
$html->image('/app/tmp/image')
Thanks
Where is the call to the action?
On Dec 26, 1:12 am, rtgwork <[EMAIL PROTECTED]> wrote:
> I have this code in my view:
>
>
>
>
>
>
>
>
>
>
> onclick="new Ajax.Updater('updateDiv', 'mailer', {asynchronous:true,
> evalScripts:true, parameters:Form.serialize(this.
Why not just put it in the /webroot/js/ folder then you can call link('ext-js/ext')?> if you have the javascript helper
included in your controller.
On Dec 26, 1:52 pm, [EMAIL PROTECTED] wrote:
> I am new to cakephp... how to include ext-js folder.? should i put it in
> "vendors" if yes then h
41 matches
Mail list logo