Hi, In my "Reports" controller, which is just a dummy controller
without any actual database, I'm trying to generate a paginated view
of other models. For example, to generate paginated view of
"Transactions" model I'm doing the following:
$this->loadModel('Transactions');
$this->Transactions-
>bi
@cronet, i always make my Ajax Request as u tried.
I tried like you to use .json ext and it never worked for me, so i
parsed .ajax extension and all work fine.. you should try .ajax
extension.
On 18 mar, 10:12, cronet wrote:
> That works very well... Thank you guys !
>
> On 18 Mrz., 12:28, LipeD
Nevermind, figured it out!
Thanks!
On Mar 18, 1:27 pm, Parris wrote:
> Not input singular... inputs, plural.
>
> On Mar 18, 12:52 pm, euromark wrote:
>
> > i think there is pretty much everything
> > covered...http://book.cakephp.org/view/1390/Automagic-Form-Elements
>
> > On 18 Mrz., 20:19, Pa
http://api13.cakephp.org/class/form-helper#method-FormHelperinputs
On Mar 18, 12:52 pm, euromark wrote:
> i think there is pretty much everything
> covered...http://book.cakephp.org/view/1390/Automagic-Form-Elements
>
> On 18 Mrz., 20:19, Parris wrote:
>
> > Everytime I use it (and I really lov
Not input singular... inputs, plural.
On Mar 18, 12:52 pm, euromark wrote:
> i think there is pretty much everything
> covered...http://book.cakephp.org/view/1390/Automagic-Form-Elements
>
> On 18 Mrz., 20:19, Parris wrote:
>
> > Everytime I use it (and I really love using it), I need to look u
i think there is pretty much everything covered...
http://book.cakephp.org/view/1390/Automagic-Form-Elements
On 18 Mrz., 20:19, Parris wrote:
> Everytime I use it (and I really love using it), I need to look up
> info about it. It is no problem with datatime, text, textfields, and
> checkboxes;
I was able to fix this by doing just as you suggested...I removed all
unnecessary js references and also abandoned CakePHP's built in
AjaxHelper (since it's deprecated as you pointed out)
I'm not using scriptaculous, and it works like a charm on localhost
AND my web server :)
Thanks for your help
Everytime I use it (and I really love using it), I need to look up
info about it. It is no problem with datatime, text, textfields, and
checkboxes; however, on off change I need a select or upload field, I
need to do some work. Furthermore, if I want to change the label I
need to experiment a milli
Duh! Sometimes it doesn't pay to get up in the mornings! Thank you!
On Mar 17, 9:09 pm, kdubya wrote:
> Looks like your forgot the echo in front of the call to
> $this->Form->input("ShooterEvent.$we.ShooterOption.$wo.entryfee",
>
> $optbab);
--
Our newest site for the community: CakePHP Vid
On Fri, Mar 18, 2011 at 2:02 AM, Shashank wrote:
> Finally i am able to use ajax. But now there is one more problem. I use 1)
> Ajax form 2) And made an ajax request through jquery.
> These are two different forms. For one form i used the ajax form.
> And for second one i used the jquery to make t
On Wed, Mar 16, 2011 at 10:23 PM, samjoe wrote:
> Hi,
>
> I am upgrading from CakePhp1.1 to Cakephp 1.2 When I try to load up my
> page, I get the following error.
>
> Warning (512): SQL Error: 1066: Not unique table/alias:
> 'ShoppingCart' [CORE/cake/libs/model/datasources/dbo_source.php, line
>
On Fri, Mar 18, 2011 at 9:36 AM, Ryan wrote:
> It could very well be a conflict in JS references...While working on
> this, I threw all sorts of different .js files and references to the
> code. I will look into that and see if I can remove/consolidate.
>
> What really confuses me is why it works
On Thu, Mar 17, 2011 at 10:42 AM, Warren wrote:
> I think you have to reset the active record in your for each loop, try this
> :
>
> foreach ($ids as $id) {
> $this->Item->id = $id;
> $this->Item->saveField('sort_order', $i++);
> $this->Item->create();
I wrote some blog posts about this.
http://milesj.me/blog/read/62/Doing-AJAX-Calls-In-CakePHP%3A-Part-1-_-The-Front_end
On Mar 18, 7:12 am, cronet wrote:
> That works very well... Thank you guys !
>
> On 18 Mrz., 12:28, LipeDjow wrote:
>
> > Yes.
>
> > Instead returning the value in action, you
That works very well... Thank you guys !
On 18 Mrz., 12:28, LipeDjow wrote:
> Yes.
>
> Instead returning the value in action, you can set it to view and load a
> general element for JSON.
> Like this (using Taffarel's example):
>
> function json(){
> //bring some data in database
> $json
Yes.
Instead returning the value in action, you can set it to view and load a
general element for JSON.
Like this (using Taffarel's example):
function json(){
//bring some data in database
$json = $this->Test->find('all');
$this->set('json', $json);
$this->render('../elements/
On Mar 18, 2011, at 04:24, varai wrote:
> I'm new to cakePHP and OOP.
>
> I'm not understanding
> 1)what find('all') in the following code means
find('all') finds all records in this model's database table and returns them
to you as an array.
> 2) what is the purpose of $this->set('ingredien
Hi
I'm new to cakePHP and OOP.
I'm not understanding
1)what find('all') in the following code means
2) what is the purpose of $this->set('ingredients', $ingredients);
I got this from book.cakephp.org.
Ingredient->find('all');
$this->set('ingredients', $ingredients);
}
}
?>
any he
True, but it would be easy if you strip that out in your code. I'm not
sure if the average user would know what you meant if you all you asked
for was the id. I could be wrong though.
On 18/03/2011 10:49, Ryan Schmidt wrote:
On Mar 18, 2011, at 03:14, Warren wrote:
If you go view a video on
Hi
Create /app/views/errors/missing_controller.ctp as a layout.
You can change this to show a generic 404.
Alternatively, if it's error text you want to remove, then you should get
away with it by setting debug to 0 in /app/config/core.php
On 17 March 2011 19:18, Giovanni wrote:
> Hi,
>
> I w
On Mar 18, 2011, at 03:14, Warren wrote:
> If you go view a video on youtube you will see there is an option to get the
> embed code. This is the what you should ask your user's to input. You could
> have a simple regex check to make sure it seems like an embed code.
Actually all you want to s
Not exactly.
If you go view a video on youtube you will see there is an option to get
the embed code. This is the what you should ask your user's to input.
You could have a simple regex check to make sure it seems like an embed
code.
You then echo that in the view like normal html.
On 18/0
Why are there two threads from the same person on the same subject?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 18 Mar 2011, at 08:12, Shashank wrote:
> Hmm. Then let me try it through you tube then .
>
> On Fri, Mar 18, 2011 at 1:36 PM, mike karthauser
Hmm. Then let me try it through you tube then .
On Fri, Mar 18, 2011 at 1:36 PM, mike karthauser wrote:
>
> On 18 Mar 2011, at 07:30, Shashank wrote:
>
> Hi,
> I am trying to do something new here. I want a feature something like
> ds:
> A user been able to upload a vedio from his local pc, and t
You mean i shud give the user and input field where he enters the url of
youtube, and on submit i produce this iframe whose src will be the url that
the user entered
On Fri, Mar 18, 2011 at 1:32 PM, Warren wrote:
> Could you not use a simple form field that take the embed code from youtube
> eg
On 18 Mar 2011, at 07:30, Shashank wrote:
> Hi,
> I am trying to do something new here. I want a feature something like
> ds:
> A user been able to upload a vedio from his local pc, and then he can
> go over the site to play and watch it. I have no idea how to do ds.
> But i need to get it done a
Hi Guys,
I need to know a way that enables the user to share youtube vedios on
the site.
Thanks
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questi
Could you not use a simple form field that take the embed code from
youtube eg : height="390" src="http://www.youtube.com/embed/8rluU6BGpKw";
frameborder="0" allowfullscreen> ?
And then echo that in the view?
On 18/03/2011 09:58, Shashank wrote:
Hi Guys,
I need to know a way that enables the
On Fri, Mar 18, 2011 at 11:14 AM, cricket wrote:
> When I did this I didn't bother modelizing ArosAcos. This is from my
> SectionsController. Each Group has different rights for each Section.
>
Well, what exactly I want is I wanna make a simple ACL Management
based on aros_acos table. So, I wanna
=>this is my ctp
List of Country
List of State
Edit
Hi,
I am trying to do something new here. I want a feature something like
ds:
A user been able to upload a vedio from his local pc, and then he can
go over the site to play and watch it. I have no idea how to do ds.
But i need to get it done asap.
Any helps will be greatly appreciated!!!
--
Our
hi,
i m trying to display states with respect to country in index.
but country is displaying each time for each state.
i want to get all the state for under its respective country for each
time.
eg. if i have india as country having many sates then all states
belongs to india will come under one i
On Mar 18, 2011, at 02:04, andy_the ultimate baker wrote:
> i m trying to display states with respect to country in index.
> but country is displaying each time for each state.
>
> i want to get all the state for under its respective country for each
> time.
> eg. if i have india as country havin
Thanks but I should have made it clear that I do urlencode the URL. I
just didn't show the encoded URL here.
On Mar 17, 4:46 pm, Ryan Schmidt wrote:
> On Mar 17, 2011, at 13:24, qua...@gmail.com wrote:
>
> > I am having a problem with cache if the URL has apostrophe in it.
>
> > For example:
> >w
34 matches
Mail list logo