Just a thought...if your site is a HUGE portal, won't this select list become a
little HUGE too?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 30 Aug 2010, at 05:41, Sam wrote:
> Something along the lines of
>
> In controller:
> $recievers = $this->Us
I think I know what you want but I'm not sure... let me know if I'm
close.
I'd do it one of two ways
1) User selects a province, page refreshes and now there are two
dropdown boxes, first one has province selected, in the second user
chooses region(and so forth)
2) User selects a province, select
Something along the lines of
In controller:
$recievers = $this->User->find('list', array('conditions' =>
array('User.id NOT' => $this->Auth->User('id';
$this->set('recievers', $recievers);
in view:
echo $html->input('reciever_id');
On Aug 29, 5:23 am, Baker wrote:
> Hello,
>
> I am buil
The documentation covers this but you REALLY gotta read into it
These two pages are vital to "getting" cake IMO.
http://book.cakephp.org/view/890/Understanding-Model-View-Controller
http://book.cakephp.org/view/901/CakePHP-Conventions
Once these two really begin sinking in these two pages will l
The documentation covers this but you REALLY gotta read into it
These two pages are vital to "getting" cake IMO.
http://book.cakephp.org/view/890/Understanding-Model-View-Controller
http://book.cakephp.org/view/901/CakePHP-Conventions
Once these two really begin sinking in these two pages will l
There is no documentation for an index() method in the API docs
because no such method exists. Its a method you create as part of the
tutorial to handle requests for a list of posts. Controller actions,
or controller methods are accessible by the url. Generally these
methods are created by you t
yup, then you can use that portion repeatedly.
On Aug 29, 4:55 am, Tilen Majerle wrote:
> emmmake elements and then include it in view :D
>
> --
> LP,
> Tilen Majerlehttp://majerle.eu
>
> 2010/8/29 Tomfox Wiranata
>
> > hi everyone,
>
> > in my view i have a lot of html/php code to make
I make use of the automatic url parsing and pass my URLs in the form
controller/action/var1:value1/var2:value2/etc:etc
This provides two benefits, one you setup your actions like this:
function action_name(var1, var2) { if your always going to submit in
the same order
or you can make use of the
It will work with href.
1. Save the file within CakePHP /app/webroot/ folder.
2. Now point to that location in your href.
You should not have a problem, I hope.
On Aug 29, 2:58 pm, Tomfox Wiranata wrote:
> hi,
>
> how can i reference to file on my hdd with cake, that this file opens
> a soon a
"When someone browsers to /controller/index, it calls the index()
method for
the controller, which usually contains a find call for the model
associated
with the controller and sets a variable which is available in the
index view
for the controller in question. "
This is the kind of information I
the index() method in your controllers wont have any parameters...or maybe
it will - its up to you.
Hell you don't even have to define one if you don't want to.
When someone browsers to /controller/index, it calls the index() method for
the controller, which usually contains a find call for the m
Hi,
Wondering if its possible to define virtual fields without actually defining
what the virtual field points at?
I want to do this later on in my query via a join, but need to define the
virtual field so that pagination will work as expected.
Check out the new CakePHP Questions site http://cak
I have searched Google, CakePHP Google Group, API Controller
documentation (versions 1.2, 1.3), API AppController documentation
(versions 1.2, 1.3) and have found no useful information on the
parameters used by the index method. Search terms include "index
method", "index method" & documentation,
i think you need to start again from the beginning of the manual.
index() is controller action. It gets records from the Model and sends
them to the view. It sounds like you don't really understand the way
CakePHP uses MVC. Also, the core has an extensive API for versions
1.1, 1.2, and 1.3.
On Au
Hello,
I am building a huge portal using the CakePHP and now I stumbled upon
a problem.
I want one user to send message to another. So when I click Send
Message it opens up my view file send.ctp and I write title, message
and so on. But I also need to select user to which I am sending the
message.
I am trying to get started with CakePHP and am experiencing some
frustration with the documentation. (fwiw, I am moderately well
experienced with PHP.) For example, I was following the blog tutorial
at the CakePHP website, only trying to adapt it to the database I
intend to work with. I learned
hi I want put some conditions for virtual fields.. can any one please give
the syntax ..
thank you
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
hi.
i have a variable stored in a session:
$this->Session->write('Link.Attachment.Count', $count);
this is about uploaded attachments and i want to save the path for
each attachment. lets say i want to save the 3rd attachment that was
uploaded, then i wanna have this name for my session:
$this-
hi.
i have a variable stored in a session:
$this->Session->write('Link.Attachment.Count', $count);
this is about uploaded attachments and i want to save the path for
each attachment. lets say i want to save the 3rd attachment that was
uploaded, then i wanna have this name for my session:
$this-
thx jeremy i will take a look at it...did hear from media view until
now :)
On 29 Aug., 13:26, Jeremy Burns | Class Outfit
wrote:
> Look at media views...http://book.cakephp.org/view/1094/Media-Views
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On
I am Extremely sorry Walther for addressing wrongly as Walter
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
hello Walter,
actually i saved the query result variable and also included the Session
Component in the controller. Actually when i dump the variable i get
in the view file:
var_dump('max');
in the controller:
Array1Array
Check out the new CakePHP Questions site http://cakeqs.org and help others
Hey all,
I've looked through pretty much every menu tutorial out there for cakephp
and have sat for ages to try and think up how I can achieve this but to no
avail.
I have a semi-complex database structure of establishments (restaurants,
hotels etc).
Province -> Region -> Suburb -> Establishment
hi,
i have this function called in my view. it is JS.
ajaxUpload(form,'processFlyer','flyer_css','','Fehler beim
Upload');
the processFlyer is a function in my controller. how can i pass
variables with this call?
i know it works with jquery like this
$('#flyer_preview').('countattachments', {at
Look at media views... http://book.cakephp.org/view/1094/Media-Views
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 29 Aug 2010, at 10:58, Tomfox Wiranata wrote:
> hi,
>
> how can i reference to file on my hdd with cake, that this file opens
> a soon as i c
In cake1.3, has as anyone tried to group related plugins together, in
a subfolder, under the plugins/ directory?
eg.
plugins/
ecommerce/
... all my ecommerce related plugins ...
cms/
... all my cms related plugins ...
I was not able to get cake to accept thi
hi,
how can i reference to file on my hdd with cake, that this file opens
a soon as i click the link? for example on my site there will be a
link, shown as a icon with text. if you click the link i want cake to
open that file...
how can i do that? does it work with href somehow?
looking forward
emmmake elements and then include it in view :D
--
LP,
Tilen Majerle http://majerle.eu
2010/8/29 Tomfox Wiranata
> hi everyone,
>
> in my view i have a lot of html/php code to make a form. this makes my
> view really big. i was wondering if it is possible, to source this
> code out in
hi everyone,
in my view i have a lot of html/php code to make a form. this makes my
view really big. i was wondering if it is possible, to source this
code out in a html file to include it?? makes it more transparent.
ls that possible?
thx a lot :)
Check out the new CakePHP Questions site http:
Apologies if this has already been discussed in the group, but I could
not find it. I have an advanced installation on Windows running wamp,
which I tested first with the app folder containing webroot at the
document root and the cake libraries above the document root. The
initial test setup worked
Hi,
I've got a query i've created in cakephp using a lot of join arrays. I've
also unbound associated arrays for the purpose of this query so that i can
get the results exactly as I need them.
The resulting query is:
SELECT `forums`.`id`, `Thread`.`id`, `firstpost`.`title`,
`lastpost`.`title`, (
I think you might want to use the $this->Form->submit() method
instead.
On Aug 29, 7:34 am, "Dave Maharaj" wrote:
> I cant figure out why my button says "submit Query" (1.3.3)
>
> I have Form->button('Login', array ('type' => 'submit')
> );?>
>
> If I use Form->button('Login', array ('type' => 's
32 matches
Mail list logo