Below is my controller. What I want to do is post the data from page2
to page3 using a $this->redirect(); Is this possible? Shown in BOLD in
the code is where the redirect is. Page 2 has to post to itself for
error checking but page 3 needs the post details of 2 when no errors.
Is there anyway aro
So when you request www.mysite.com/whatever/index then the page does
come up ok, just all of the links to images / css are incorrect? If
the page comes up, then your mod_rewrite must be working - so the
problem will be in the urls of the images / css themselves. Have a
look in the source and see
I would recommend you do not go modifying the core like this. If
$this->webroot is being set to an incorrect value this most likely
indicates an error in your setup and configuration - it is preferable
to find this issue and fix it than to make a change like you have.
Can you please give example
First, try a different variable name - I don't think 'error' is
predefined but it is possible.
Second, try a print_r($this->viewVars) in your view, it will show any
of the view variables that have been set by the controller.
--~--~-~--~~~---~--~~
You received this
Thanks, but getting same thing.
I tried both:
$this->set('error', 0); and
$this->set('error', 1); in case their was reverse logic from what
was intended.
And the IF condition is always seeing that there is an error and
displaying the message.
On Jun 24, 10:01 pm, "Dr. Tarique Sani" <[EMAI
Try using 0 and 1 instead for false and true
T
On 6/25/07, beetlecube <[EMAIL PROTECTED]> wrote:
>
>
> I'm working on my User model ( I'm not using any Auth libraries or
> anything, just doing it like the CAke blog tutorial did it ).
>
> And I just
> 1. Created my register.thtml file for the user
Thanks )
On 24 июн, 04:03, Grant Cox <[EMAIL PROTECTED]> wrote:
> 1. In your controller look in $this->params['form']['input_box_name']
>
> 2. Unlikely to be a Cake issue. Check the source and headers
> returned.
--~--~-~--~~~---~--~~
You received this message
I'm working on my User model ( I'm not using any Auth libraries or
anything, just doing it like the CAke blog tutorial did it ).
And I just
1. Created my register.thtml file for the user.
2. Then created the register() function in UsersController.
At this point, this function is:
function
When I attempt it, I'm seeing autocomplete=off as well. What did you do to
fix this issue?
On 6/24/07, Mech7 <[EMAIL PROTECTED]> wrote:
>
>
> Ok i have it working i made a little error :D
>
> But how can i get it to work like the example on scriptaculous:
> http://demo.script.aculo.us/ajax/autocom
Thanks a lot its working now :-)
On 6/22/07, Grant Cox <[EMAIL PROTECTED]> wrote:
>
>
> Well, the inbuilt behaviour is hard-coded to "created", "modified" and
> "updated". However, you can easily throw a beforeSave() in your
> model, check if an id is already set (indicating UPDATE rather than
>
Yeah, I supposed that setting it to high will do the trick. But it
will be very short, so we have to increase 'CAKE_SESSION_TIMEOUT'
constant.
Thanks all.
On 25 июн, 08:09, Grant Cox <[EMAIL PROTECTED]> wrote:
> Well, I just tried it and get similar behaviour, when CAKE_SECURITY is
> set to 'low
I have an issue with cake.generic.css having a wrong path when not use
mod_rewrite and when not use the webroot in the default place that
come with the cake distro.
It tooks me several weeks pulling my hair out and finally I figure out
something.
On line 308 of cake/libs/view/helpers/html.php
T
Hi Langdon,
I'm not really an Ajax/Javascript person either, but the way I did it
was having a javascipt function on the submit buttons themselves,
which would serialize the form data, and sent it off to server
action. So each button has it's own javascript which includes the
submit URL - it doe
Well, don't write the SQL yourself of course, something like
$user_story_conditions = array(
'city_id' => $Session->read('logged_in_user_city_id')
);
$user_stories = $this->Story->findAll( array('Story'=>
$user_story_conditions) );
would be better.
For rating, the only thing that springs to m
Hi,
I'm the beginner in Cake but can you try this code:
function admin_index($id) {
$this->Product->recursive = 0;
$products1 = $this->Product-
>findAllByCategory_id($id);
$this->set('products', $products1);
if(array_k
Well, I just tried it and get similar behaviour, when CAKE_SECURITY is
set to 'low'. The default was 'high' and I have left it like that on
all of my projects - and this causes your session cookie to expire
with the session (what you want) rather than some date massively in
the future.
On Jun 2
Hi Grant
Thanks for the feedback. Now that you mention it, I think you are right
about AJAX submitting all buttons.
I am curious to know how you get different buttons to submit to
different actions though. I have tried this, but my AJAX/Javascript
skills are a bit on the rusty side and I co
You can chain together multiple classes on a single element, eg . But your question is more related to
stylesheets, rather than CakePHP. You should consult the Google oracle
for more information on CSS.
On Jun 24, 3:24 pm, Amy1234 <[EMAIL PROTECTED]> wrote:
> can I overide the in my css class to
Try using radio inputs instead of checkboxes.
echo $html-
>radio('s_sexes',array('man'=>'Man','woman'=>'Woman','both'=>'Both');
On Jun 24, 4:35 pm, Allen Romero <[EMAIL PROTECTED]> wrote:
> Does anyone know how to display checkboxes in 1.2 then retrieve their
> values
>
> I tried something like
At the moment i get 32 queries on a page which is well allot :) Is
there a way to optimize them?
I have: $this->set('articles', $this->paginate('Article'));
And it doe queries:
1 SELECT COUNT(*) AS count FROM `cms_articles` AS `Article` WHERE 1 =
1 1 1 0
2
Does anyone know how to display checkboxes in 1.2 then retrieve their
values
I tried something like
echo $form->checkbox('s_sexes',array('value'=>'Men')) . 'Men';
echo $form->checkbox('s_sexes',array('value'=>'Women')) . 'Women';
but whent he page is submitted, if both are checked, only the s
can I overide the in my css class to how I want
all my forms to be?
On Jun 24, 2:27 pm, trooney <[EMAIL PROTECTED]> wrote:
> Google CSS & Floats to find articles on how to dynamically position
> elements on a page.
>
> If you've baked your views with 1.2, your form elements are wrapped in
> t
Also i would like to use the autocompleter for adding tags, so when i
press enter it will add a div with a hidden form with the tag does
anybody know how i should do this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
In my function i would like to define a variable $data['Category']
['id']. If the findAllByCategory_id($id) returns no records, i would
like $this->data['Category']['id'] to be the value of the $id passed
into the function.
function admin_index($id) {
$this->Product->recu
Ok i have it working i made a little error :D
But how can i get it to work like the example on scriptaculous:
http://demo.script.aculo.us/ajax/autocompleter
Here you can use the arrow buttons to select a value which is not on
default with the helper :(
--~--~-~--~~~-
Google CSS & Floats to find articles on how to dynamically position
elements on a page.
If you've baked your views with 1.2, your form elements are wrapped in
tag. A quick and dirty method would be applying
the style attribute directly to the divs wrapping the title and author
elements, then cle
Hello,
I have googled this but is unable to find out how to do this. On my
forms instead of vertically listed fields such as:Title: __
Author: ___
I would like it to be: Title: Author:
how would I do that.
Thanks for your help
Amy
"" would be the input box
Yes that is the article i used.. but it seems that in 1.2 the
component is not needed anymore?
http://api.cakephp.org/1.2/class_ajax_helper.html#e5f03710a3e8295419dc5f99bdef4dea
But does nobody have any examples for 1.2 that i can look at as i
can't get it working.. It does post requests but the
sharp looking site, shame it's in german :-)
On 6/24/07, xhoch2 <[EMAIL PROTECTED]> wrote:
>
>
> Maybe this is interesting for someone.
> Dukudu.de - a german twitter clone - was made with CakePHP.
> The service was mentioned on TechCrunch because it is listed for sale
> on ebay:
> http://feeds.fe
Please ticket this:
https://trac.cakephp.org
Thanks!
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIg
Maybe this is interesting for someone.
Dukudu.de - a german twitter clone - was made with CakePHP.
The service was mentioned on TechCrunch because it is listed for sale
on ebay:
http://feeds.feedburner.com/~r/Techcrunch/~3/126640006/
In my opinion a very good reference for CakePHP.
http://www.du
I apologize if this has been asked before, I searched for quite some
time and could not locate an answer. I'm new to cakephp and can't
seem to get the mod_rewrite to work properly. My pages load perfectly
when I point to www.mysite.com, but only the content is shown if I
point to www.mysite.com/
Hello ... ;)
I have problem with $paginator->numbers.
When I execute code:
$paginator->sort('TOPIC', 'topic', array('url'=>
array('controller'=>'Projects', 'action'=>'sort'),'update'=>'list'));
everything works ok and my site use ajax.
When I try do the same with $paginator->numbers
echo $pagi
On Jun 24, 4:26 am, Contrid <[EMAIL PROTECTED]> wrote:
> I have found the beforeRender() function.
> I think this is what I need.
http://groups.google.com/group/cake-php/web/frequent-discussions
--~--~-~--~~~---~--~~
You received this message because you are su
Ok, that makes sense.
On Jun 23, 1:05 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 6/23/07, oleonav <[EMAIL PROTECTED]> wrote:
>
>
>
> > Nevertheless one would expect that Cake should output the right form
> > tag when a validation error is found.
>
> You are trying to fight cake instea
Ah... that clarifies things, thx Grant Cox.
Changing the favicon.ico solved the problem!
On Jun 24, 10:03 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> No, it's not a bug, it's just something to keep in mind with any web
> application that uses pretty urls made to look like a folder structure
> (i
On 23 июн, 14:05, Grant Cox <[EMAIL PROTECTED]> wrote:
> I'm still not understanding what the problem is. Are you saying that:
>
> You log into your site
> Close your browser (all windows)
> Load your browser again, visit your site, and you are automatically
> STILL logged in?
Yes, that's tru
Hi
> turns cakephp into a proper cms
omg im SO afraid ;)
greets,
On Jun 24, 4:34 am, "Jonathan Langevin" <[EMAIL PROTECTED]> wrote:
> so are you using beforeRender to pull your data as needed, to populate the
> sidebar "elements"? i'd be interested in seeing how someone turns cakephp
> into a prop
No, it's not a bug, it's just something to keep in mind with any web
application that uses pretty urls made to look like a folder structure
(ie http://localhost/controller/action/params ). The whole point is
to make the user, your browser, and Google think that these are an
actual folder structur
> Although, I will have variables in the user file
> for things like "show thread where user_location_id=city_id"
Do you mean that the controller action will need to retrieve database
information (ie posts, news articles, threads) based upon the current
user's details (ie location)? This should
Ok, thx all, I understand now that other things are also relevant to
check when dealing with sessions. Later this day I'll try to check all
my images. I just tried a small test with 2 new actions that only
respectively set a session_VAR + redirect, and die/print_r the
Session. This seems to work,
41 matches
Mail list logo