> I am following the post example in the manual and I wondered how the
> names connect.
>
> There is the file "post" with the class of the same name: how does the
> contoller connect with the "post" model ?
It's a convention, model is 'Singular' form of the database table,
controller is 'Plural'_
Yes, look in the api for Controller::render();
On Oct 20, 5:08 pm, the_woodsman <[EMAIL PROTECTED]> wrote:
> Erm, isn't there some variable like viewPath inside a controller?
> Also, can you not specify a path when you call render inside a
> controller?
>
> If I understand your problem correctly,
I've used both PHPMailer and SwiftMailer, and prefer SwiftMailer.
On Oct 20, 10:25 am, bunyan <[EMAIL PROTECTED]> wrote:
> Have a look at SwiftMailer Component at the Bakery. It's for 1.1,
> AFAIR, but you can use SwiftMailer as a vendor in CakePHP, and
> SwiftMailer is capable of sending batch e
Use the query method of your model.
On Oct 19, 5:21 pm, manuj bansal <[EMAIL PROTECTED]> wrote:
> i wanted to update more than one rows in database table by one query
> only in cakephp
>
> for eg we can use deleteall to delete more than one field at one
> query
>
> On Oct 20, 12:26 am, "Wayne Fa
You can put forum/ in app/webroot/, so it will become available as
www.yoursite.com/forum/
On Oct 19, 1:16 pm, darkblack <[EMAIL PROTECTED]> wrote:
> hi,
> Cake has been setup in the root and the main application runs out of
> cake. But there is a forum set atwww.site.com/forumwhich has
> exist
I think you can put a catch all rule at the end of app/config/
routes.php, and that should do the trick.
On Oct 19, 8:50 am, Aroha <[EMAIL PROTECTED]> wrote:
> I am trying to figure out how to make the root folder redirect to a
> page rather than the typical controller/action. I am attempting a
>
Try putting Configure::write('debug', 0); in top of your action.
On Oct 19, 7:38 am, "marek. bytnar" <[EMAIL PROTECTED]> wrote:
> Cake puts some characters which destroy .doc structure when
> downloading. Here is an analogic function which works ok in plain php
> script
>
> function download_doc_
Have you declaredvar $actsAs = array('Upload' =>
array(__OPTIONS_HERE__) ); in the model?
Have you put the UploadBehaviour in app/models/behaviours/
upload.php ?
Please paste your model.
On Oct 19, 7:08 am, Indian Baker <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm referring to the followin
Marc,
Have you considered using $form->input instead of $form->radio?
This will generate that mark-up for you, as well as creating a
fieldset too, if you require.
Something along the lines of:
input('Options.selectPlan', array(
'div' => false,
'label' => true,
'type' => 'radio',
Hi,
I've been looking for a while but I can't seem to find the solution.
Basically, I have Countries, which has many States, every State has
many Cities, and every City has many Users.
I'm trying to get all the Users in a specified State, and I don't want
to put a state_id in the user table, bec
Erm, isn't there some variable like viewPath inside a controller?
Also, can you not specify a path when you call render inside a
controller?
If I understand your problem correctly, Im sure one of those
approaches willl work...
On Oct 20, 3:48 pm, Soulcatcher <[EMAIL PROTECTED]> wrote:
> Ok, so
One thing I do that helps me keep up to date on any changes that
happen within the /app folder, is add the following feed to my RSS
reader:
https://trac.cakephp.org/log/branches/1.2.x.x/app?limit=100&mode=stop_on_copy&format=rss
It shows any changes that are found on this page:
https://trac.cak
well, I managed to integrate SMF (http://groups.google.com/group/cake-
php/browse_frm/thread/e44d0a4b957f3bf0) , but I'm still not sure
whether to go for a simple HOME-MADE forum solution, with just few
esentials functions.
In fact the API I'm building already has user profiles etc.
Today I star
Ok, so there is no way to specify ctp file to render inside the
function w/o hacking cakePHP?
In any way, if i have pretty large website and dont want to use
database to store pages - this means that my events folder in views
will have dozens and dozens of ctp files?
On Oct 20, 1:50 pm, "Wayne F
Hi Dan -
I haven't seen anything to date. But I've been thinking it would be
cool to do something like Beast Forum http://beast.caboo.se/ did with
rails. It really wouldn't be rocket science with findAllThreaded().
On Oct 20, 8:53 am, cakeFreak <[EMAIL PROTECTED]> wrote:
> Has anyone implemente
I get those errors when i want to $this->obAuth->lock(array(1)) my
actions:
Notice: Trying to get property of non-object in /home/lah000/htdocs/3/
app/controllers/components/ob_auth.php on line 71
Notice: Trying to get property of non-object in /home/lah000/htdocs/3/
app/controllers/components/ob
It's been removed and doesn't appear to be used anymore.
Cake is mainly using the Configure object now (not defines) to store
settings, and in core.php you see it being used as:
Configure::write('Session.save', 'database');
One line that appears similar to CAKE_SESSION_STRING is:
Configure::writ
Sounds like a site begging for a CMS (Content Management System) of some kind.
Wayne
On 10/20/07, Soulcatcher <[EMAIL PROTECTED]> wrote:
>
> Basically, i was asked to organize stuff inside views folder so that
> people who have no idea about cakephp can do some small changes
> directly to views.
To make that concrete...
class UsersController extends AppController {
var $uses = array('Muppet', 'Fraggle', 'Smurf');
}
This is covered in the Cake manual too:
http://manual.cakephp.org/chapter/controllers
Wayne
On 10/20/07, the_woodsman <[EMAIL PROTECTED]> wrote:
>
> I can at least help w
On 10/20/07, Comida411 <[EMAIL PROTECTED]> wrote:
>
> Hi
> Sorry to ask such a bone head question but I want to change my
> CAKE_SESSION_STRING key which is supposed to be in the app/core.php
> file.. but I search the file from top to botteom on the latest nightly
> build... its not there...
> Hel
Basically, i was asked to organize stuff inside views folder so that
people who have no idea about cakephp can do some small changes
directly to views.
Ideally my views folder should mirror organization's structure. For
example, they have Events section that has several events and each
event has
Hi
Sorry to ask such a bone head question but I want to change my
CAKE_SESSION_STRING key which is supposed to be in the app/core.php
file.. but I search the file from top to botteom on the latest nightly
build... its not there...
Help please tell me where I can find the CAKE_SESSION_STRING
Thank
WT.. !!
amazing that something as simple as this was not found anywhere else
thanks dude, you saved my life today.
On Oct 19, 10:44 pm, "Amit Badkas" <[EMAIL PROTECTED]> wrote:
> On 10/20/07, DonGato <[EMAIL PROTECTED]> wrote:
>
> > Hi there!
>
> > I've been working a few weeks with cakephp, I'
I can at least help with b)
Controllers can have access to many, unrelated models, by having more
than one item in the uses array.
Good luck with the other stuff!
On Oct 19, 2:07 pm, Pinholecam <[EMAIL PROTECTED]> wrote:
> I've been looking for some answers to my problems but after a couple
I am following the post example in the manual and I wondered how the
names connect.
There is the file "post" with the class of the same name: how does the
contoller connect with the "post" model ?
Where does the "post" member on the controller come from ?
I ran cake and got a list of posts but
Has anyone implemented (or tried to) a simple forum in CakePHP?
Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe fr
First off, you shouldn't really be using html::selectTag. It's
deprecated.
What you should probably do is use something like this
Form::input('Model.field', array('options'=>
$selectOptions,'selected'=>'Item Selected', 'label'=>'Label text',
'onchange'=>'return changeJavascript();'));
That is as
Hi
I'm Prashant . My question maybe very funny. But please answer to me
if you
have any ideas.
I use $html->selectTag(), I don't know how to use OnChange.
When User choose a item on SelectTag, I want Browser to redirect
another
page and get current value.
Thank so much!
--~--~-~--~
Have a look at SwiftMailer Component at the Bakery. It's for 1.1,
AFAIR, but you can use SwiftMailer as a vendor in CakePHP, and
SwiftMailer is capable of sending batch emails.
On 20 Oct, 23:56, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > There are several SMTP email sending options / classes wh
> There are several SMTP email sending options / classes which you can
> put in vendors and use them.
have you used any with cake? do you have a recommendation?
> Do remember that these days SPAMMERS are killed :P
yes, quite right too!
this is for my friends nightclub in Bristol (uk) www.clock
There are several SMTP email sending options / classes which you can
put in vendors and use them.
Do remember that these days SPAMMERS are killed :P
Cheers
Tarique
On 10/20/07, Jon Bennett <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> I need to code a mailing list app in cake 1.2. I've tried using th
I was just forgetting a couple of things about a couple of
modifications to the SMF original session table:
1) add a column called 'expires' and set it to NULL (only CakePHP
writes there)
2) set the `last_update` field to NULL (only SMF writes there)
-
Final
hi,
I need to code a mailing list app in cake 1.2. I've tried using the
Email component, but I think that once you get over a certain number
of sends, it becomes very ineffiecent, as it opens a new connection
each time.
I've looked at the code at in www.listmailpro.com/ (which a client
uses), a
Following the discussion of these 2 threads:
http://groups.google.com/group/cake-php/browse_frm/thread/6440d2b1f7a29534/b0d25b27475b6bdc?lnk=gst&q=SMf#b0d25b27475b6bdc
http://groups.google.com/group/cake-php/browse_frm/thread/55d0edff83e39775/2040fbf427a3996c?lnk=gst&q=SMf#2040fbf427a3996c
I ca
hi,
I'm using the 1.2 email component to send emails (well, duh!) and for
some reason it's always returning false, I can't for the life of me
work out why as it always sends the mail successfully, and no errors
are returned.
// controller code snippet
$this->Email->subject = 'my test subject';
$
I found this link while searching for resolve but it didn't help -
when I use "array(showEmpty=>'Select ...')" it shows in select box but
it's not selected by default and doesn't help :(
May be select boxes must be validated in different manner but I don't
know how
On Oct 20, 12:22 pm, manu
your problem may be solved by this link
http://groups.google.com/group/cake-php/browse_thread/thread/8c89ca42d68496a0/89e2724d53aaad65?lnk=gst&q=select+box+validation#89e2724d53aaad65
On Oct 20, 12:50 pm, senser <[EMAIL PROTECTED]> wrote:
> Hi manuj.
>
> Your proposal didn't solve my problem. I
thanks for info
i am not sure about it
as mannual,
it looks they remove $html->submit
but they didn't mention their about $form->submit will be
depreceated
On Oct 20, 12:50 pm, senser <[EMAIL PROTECTED]> wrote:
> Hi manuj.
>
> Your proposal didn't solve my problem. I think I did read somewher
I'm having a cookie problem. It's not really a Cake problem, but the
URL structure of cake seems to be causing it. I'm running an
application in a subdirectory, so URL's look like
http://mydomain.com/app_dir/controller/action. My application has two
states, logged-in and logged-out.
The serve
Hi manuj.
Your proposal didn't solve my problem. I think I did read somewhere in
group postings that using fromHelpr->input is the right way for form
fields and using formHelper->select, formHelper->label, ... etc will
be deprecated in next versions of CakePHP. I'm not sure for this and
correct
Problem solved..
Here is was the solution
Confirm mod_rewrite is enabled in your httpd.conf file. Find the file
in your ..\apache\conf\ directory and open it in notepad. Make sure
the # sign is removed from the mod_rewrite line. Use CTRL-F to find
"mod_rewrite". It will take you directly to
41 matches
Mail list logo