Actually it's quite easy. Have a look at the cookbook:
http://book.cakephp.org/view/192/options-options
Hope that helps,
Markus
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 t
I suggest that you look into the Containable behavior, at:
http://book.cakephp.org/view/474/Containable
This will save you a lot of time in the future.
Until you choose to use Containable, your code should be changed to:
[code]
$conditions = array("month(Duty.duty_date)" => $monthNo);
$this->se
Try this:
$HttpSocket = new HttpSocket();
$request = $HttpSocket->request(array(
'host'=>':',
'uri'=>'http://api.yahoo.com/'
));
This is how powerful CakePHP is :D
On Dec 15, 8:48 am, fr3nch13 wrote:
> Has anyone tried using a proxy server with HttpSocket?
>
> I have been looking all ov
Dear everyone,
I want to return XML data form controller. The format is like
controller code:
function info(){
$xml ="my name here ";
echo $xml;
}
This does not print any result (blank result). While it get special
character then it filter all value.
Now please help me how to print such data
Hello John,
Works like a charm. Thanks for your time!
Dave
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of John Andersen
Sent: December-14-09 3:00 AM
To: CakePHP
Subject: Re: Contain Help
Hi Dave,
Try changing this:
[code]
>
Has anyone tried using a proxy server with HttpSocket?
I have been looking all over via the normal channels (google, api,
bakery, book, etc.) to no avail.
If so, could you please point me in the right direction?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
the
I wrote this component:
http://www.milesj.me/resources/script/feed-aggregator-component
Pretty basic, but gets the job done.
On Dec 14, 4:22 pm, Tonu Tusk wrote:
> Hi, I'm currently using SimplePie to show some recent blog posts off
> specific blogs via their feeds.
> Is this what you are after
Hi, I'm currently using SimplePie to show some recent blog posts off
specific blogs via their feeds.
Is this what you are after, could you not get simplepie working for
you, or does it just not deliver the full functionality you are
looking for.
Let me know if I can be of any help with my (limited
It just seems strange the example code you have listed above.
as John Anderson posted, there should be no need to put that condition
statement within the contain parameter for this call.
The whole Contain behaviour relies on your foreign key matching with
your primary id (default id) on the model
Excellent. The space after was the problem. VERY much appreciated!
On Dec 13, 12:07 pm, Piotr Kilczuk wrote:
> Hello,
>
> >> Do you use closing ?> tag in your classes?
>
> > yes I do use it.
>
> My suggestion is to stop doing that :) There is no profit, but it can
> break your code.
>
> > I read
Hi, you can only specify the fields for the model that you are callng
the "find" method on in the 'fields' attribute in the parameter list
passed to the method call.
You need to specify the fields you want returned in the dataset
controlled by the containable behaviour in the 'contain' variable
i
I have 2 groups (Member, and Manager) that will interact with the site.
Using AUTH and ACL. In my app_controller i have a beforeFilter function that
checks that if the user logged in is a "member" and they try access
"manager" it logs them out. Members can only access functions with members_
prefix
I have a bookmark star icon, click on it saves a bookmark for a post. If i
click 5 or 6 stars to save the post the star gets filled. If I click on a
post then click back in the browser all the filled stars are now empty, I
have to hit refresh to show the filled stars.
If you go to
http://toronto.
Hello,
Having trouble figuring out how to construct a query such as this:
"SELECT products.*, groups.* FROM products Inner Join collections ON
products.collection_id = collections.id Inner Join groups ON
collections.group_id = groups.id WHERE products.name LIKE '%" .
$searchstring . "'"
Products
Hi,
Thank you for you answer Jeremy.
I have had my answer yesterday on another forum, but still, the
explanation of CakePHP is not very clear.
I couldn't create .ctp file with text editor software eclipse!
Cheers,
On 13 déc, 16:20, Jeremy Burns wrote:
> Start of the second paragraph:
>
> http
On 14 dic, 20:55, thomaus wrote:
> Nobody no clue?
Try using firebug to give you an error message and/or debug the
javascript. If you continue to have problems here's a clue: you have a
(primarily) javascript only question - this isn't a javascript
specific place :)
AD
Check out the new CakeP
Nobody no clue?
On Dec 11, 7:16 pm, thomaus wrote:
> No request with Firebug. I don't get it, really...
>
> On Dec 11, 11:04 am, Mukhamad Ikhsan wrote:
>
> > do you have a firebug? you can see what the response for XHR request
>
> > On Fri, Dec 11, 2009 at 4:57 PM,thomaus wrote:
> > > Nobody no
Yes for all of the below. I use contain throughout the app with no problems
anywhere except the User <=> Profile
But I have no recursive set though. All my finds are done thru functions,
nothing is read()
Everything works fine getting Profile User data when contained in other
models when I pull f
Here you go.
http://cakephp.lighthouseapp.com/projects/42648/13-migration-guide
On Dec 14, 7:18 am, web wrote:
> Hey,
>
> does anyone know where i can find the migraton guide?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You
Hey,
does anyone know where i can find the migraton guide?
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 ema
I've found myself the solution. The problem was that I created a
project file for my editor (I use Komodo IDE) named
admin.assicurazione.kpf in cakephp's webroot.
The presence of that file makes cake's routing to stop working.
I've seen that putting wathever file named admin.something in the
webroo
I have a problem that is driving me mad! I have a form that submits
data to an edit action. It works fine when using $form->submit. I want
to submit the form via Ajax. If I change the form submit button to the
following:
$ajax->submit (
'Save',
array(
'div' => false
Hi all,
I'm doing some tests to setup the core for a new application using
cakephp 1.2.5 and I'm having a weird problem with admin routing.
I've installed cakephp following the instructions for an advanced
installation - http://book.cakephp.org/view/35/Advanced-Installation
-.
I've created 2 contro
Hi all,
I am new to cake within the last couple of months but I am a
experienced PHP programmer. I've made a few basic applications in
practice to building my own time and event management system.
I have a question regarding how to pull data from multiple tables...
I have a user profile table an
i've created a whole workaround for that:
function in app_model:
[code]
public function _setLocales($data,$id){
$languages = Configure::read('app.languages');
$saved=0;
foreach($languages as $key => $lang){
if($key == 'en') c
Hi guys,
I am looking at making use of certain RSS feeds, XML files from a site
to display certain content on their.
I have tried with simplepie but no luck.
Is there anybody that could tell me if there are any solutions to help
you too display RSS in your controllers.?
Controller
dont know w
Hello folks,
Just writing a model Behavior and got stuck onto something
Is there a way to save multiple records using the beforeSave method in
the Behavior???
I got the following code, but for some reason it fails or the data is
erased etc...
foreach($files as $i => $file){
Hi Dave,
- have you made sure that your User model has
var $actsAs = array('Containable'); in its class?
- are you setting 'recursive' to a value lower than 1 as a default for
your User model? (it will only work with a recursive value >= 1)
- Have you set your related fields in your Profile ta
I believe I know what's going on now but I'm not sure how to fix it.
On the first (successful) ajax call the next set of content is loaded,
including the paginator links, however the paginator links are not
successfully bound to a jQuery ajax call, therefore the next click
results in a normal page
uhm...
i place my bet: add the variable in bootstrap.php
avoid any mod @ cake's core like pest.
On 14 Dic, 08:58, mike karthauser wrote:
> You can either set a variable in app_controller or add a define to
> core which will apply globally
>
> Mike Karthauser
> Brightstorm limited
> Tel: 07939
30 matches
Mail list logo