Hi,
I am evaluating flex -> PHP -> database for porting a desktop C/S
application
to web. We just completed test application accessing firebird database
with
amfPHP. Some ppl suggested us to wrap database layer in some server
side
PHP framework like cakePHP. We are also aware that there is flavor
This doesn't work?
$this->find(
'first',
array(
'conditions' => array(
'Post.id' => $post_id
),
'contain' => array(
'Subject'
)
)
);
On Fri, Apr 24, 2009 at 11:
Well, the error msg is pretty clear. It looks to me like you forgot to
change the CAKE_CORE_INCLUDE_PATH define in webroot/index.php. Your
server isn't a Windows box.
On Fri, Apr 24, 2009 at 10:35 PM, simon...@gmail.com wrote:
>
> Good Evening,
>
> I did create my website using cakephp on Window
I don't think the number of characters in a query makes too much
difference. Not compared to how the query is formulated, in any case.
It's also not so much a Cake thing as between your DB and its PHP
wrapper. But, again, it's likely the least thing to be concerned
about.
On Fri, Apr 24, 2009 at
Just doing some messing around on a site and playing with contain vs.
$this->model->read($id).
When I leave the controller to read the $id SQL Queries = 6
but contain spits out 8.
Now the 6 queries was 2010 characters in length while the 8 queries was 400
less at 1600 characters. My question.
Can someone help me with a contain using a HABTM relationship.
POSTS HABTM SUBJECTS
SUBJECTS
POSTS_SUBJECTS
I have Post HABTM SUBECTS
I just want to print out the array of SUBJECTS that the POST has.
I managed to get the rest of the contain for the other hasmany tables...just
cant get the H
Chris,
I use iui on one of my sites. Your description of your install sound
ok. Are the uris to the files correct? Iui is a little quirky, I
would sugguest you temporarily elimate cakephp as potentially part of
the problem and try a static HTML/php page in $app/webroot. once you
can confirm that
Good Evening,
I did create my website using cakephp on Windows XP with Xampp. It was
working perfectly.
Then I did send all the files to my ftp and for some reason there is a
problem that I've not found the answer yet.
You can see the error at this adress:
http://simonjpa.olimpia.kinghost.net
The plugin is very new, seeing as how i finished it last week. It was
working fine for me and jperras, but it was only tested on OSX. Maybe
you are referring to the save to file, which requires more work since
workbench has not open the API to the save dialog. When they add that
it will be updated
On Fri, Apr 24, 2009 at 9:21 PM, James K wrote:
>
> You can modelize views just like you can tables. No need for query()
>
Care to give a hint?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To po
I am new at this and learning new things all the time and trying them out..
I came across finderQuery and was wondering if i set up the finderQuery in a
model such as this example I found online
'finderQuery' =>
"SELECT ".
You have the $name set wrong on your controller. Should be
'Departments' not 'Department'. If you are on PHP5 you don't need to
specify $name either.
-Mark
On Apr 24, 8:19 am, forrestgump wrote:
> hey guys,
> I ran into a problem with the model and table naming conventions
>
> I have the
Thank you!
Is that =)
Henrique Machado
2009/4/24 jitka (poLK)
>
> $label = __('Title', true);
> echo $form->input('Post.title.cze', array('type' => 'text', 'label' =>
> $label . ' (cze)'));
> echo $form->input('Post.title.eng', array('type' => 'text', 'label' =>
> $label . ' (eng)'));
>
>
Thanks for all the advice.
The ARO/ACO queries are not the factor in the time its taking so far. Mostly
the requests for the related tables. Going thru unbinding them and that
seems to have helped greatly.
I have the toolbar installed...wondering if all the info in there is also
adding to the ti
I'd look into re-evaluating how you're using ACL. If your ARO/ACO
queries are taking that long you may be relying too heavily on Cake's
built in (and horribly inefficient) ACL implementation.
- James
On Apr 24, 10:08 am, "Dave Maharaj :: WidePixels.com"
wrote:
> I was hoping to get some general
You can modelize views just like you can tables. No need for query()
- James
On Apr 24, 1:01 pm, brian wrote:
> On Fri, Apr 24, 2009 at 11:10 AM, Martin Westin
>
> wrote:
>
> > Views, I haven't got my head into yet but it sounds like I probably
> > should :)
>
> Views can make a big difference
How do you know it was SQL injection? What exactly happened?
- James
On Apr 24, 5:04 pm, Linas wrote:
> Excuse me for my lack of knowledge. I've read through discussions on
> topic "sql injection", and as far as I understood, it is not likely if
> you use CakePHP's way of doing things.
> Howeve
I tried lowering Security.level but still the behavior is:
I login and enter the page, upload an image, reload the page (F5),
window.onbeforeunload event is raised (as I havent saved the
"document", images should be erased), jQuery.ajax({url:"/
uploaded_images/delete_files/img01.jpg"}), AppContro
I tried lowering Security.level but still the behavior is:
I login and enter the page, upload an image, reload the page (F5),
window.onbeforeunload event is raised (as I havent saved the
"document", images should be erased), jQuery.ajax({url:"/
uploaded_images/delete_files/img01.jpg"}), AppContro
I tried lowering Security.level but still the behavior is:
I login and enter the page, upload an image, reload the page (F5),
window.onbeforeunload event is raised (as I havent saved the
"document", images should be erased), jQuery.ajax({url:"/
uploaded_images/delete_files/img01.jpg"}), AppContro
In Controller I do "$this->Denouncement->saveAll($this->data)" and all
saves correctly excepting for one relation: Denouncements hasMany
Sections and Sections hasMay SectionParts.
Sections saved correctly (Denouncement hasMany Section) but
SectionParts are not being saved, i guess because I'm incl
do you get
Cake is able to connect to the database. (also displayed in a green box)
if so proceed to the blog tutorial
http://book.cakephp.org/view/219/Blog
search this group when you get in a stitch; refer to book.cakephp.org &
bakery.cakephp.org
- S
2009/4/24 Venki
> e fixed the Security.
I want to have files in my vendors folder within a plugin and was
wondering what I would supply to fopen for the $include_path to start
a file stream?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
T
Hey guys, I have been trying to get CakePHP to work with the iPhone
web app js and css library "iui" and always run into problems with it
when it comes to CakePHP finding the files.
I was able to do this without CakePHP. I know it is my lack of
understanding of how best to include a third party
Doesn't cake stop mysql injection? Its a pretty easy thing to do.
What exactly happened.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
Anyone at all? I could really use some help on this.
On Apr 21, 1:02 pm, "Arak Tai'Roth" wrote:
> Anyone have any ideas on this topic?
>
> On Apr 20, 5:16 pm, "Arak Tai'Roth" wrote:
>
> > Yup, the exact same permissions as the banners directory
>
> > On Apr 20, 4:09 pm, brian wrote:
>
> > > Ar
Hi,
I don't have that much Cake experience, but I would always start with the logs
for the website and see how they did the injection. Maybe you've already done
that to get to the point where you know that this is the faulty code.
From: Linas
To: CakePHP
S
Hi nuto,
We also plan to share our French TM across French translators, and I
would be interested in the information you have about it.
Did you find an easy collaborative way for sharing it with a seamless
OmegaT integration?
Thanks in advance for the information you will provide, be sure it
wil
Excuse me for my lack of knowledge. I've read through discussions on
topic "sql injection", and as far as I understood, it is not likely if
you use CakePHP's way of doing things.
However my site was SQL injected. I only write data using the model's
save() method. Where do I start to look for possi
Rest is built into CakePHP. http://book.cakephp.org/view/476/REST
We've been investigating Web Services as well, and a Java
implementation performs a lot better than Apache/PHP, although it is a
fair bit more complex to get running. Worth thinking about if it's
going to be a highly loaded service
Note that you're fields will not be under 'UsersBook' in the array
because you're using DATE_FORMAT and COUNT. Do a debug() on the result
to see what I mean.
On Fri, Apr 24, 2009 at 2:48 PM, harpax wrote:
>
> Hi,
>
> The following should do the job:
>
> [..]
> // for the controller
> $params['fi
http://book.cakephp.org/view/410/Validating-Data-from-the-Controller
On Apr 24, 12:32 am, Temujin wrote:
> I know this will make some MVC purists out there cringe, but is there
> a way to manually call Validate routines from within the controller?
>
> I have a simple form that needs to validate
$label = __('Title', true);
echo $form->input('Post.title.cze', array('type' => 'text', 'label' =>
$label . ' (cze)'));
echo $form->input('Post.title.eng', array('type' => 'text', 'label' =>
$label . ' (eng)'));
--~--~-~--~~~---~--~~
You received this message becau
Hi,
The following should do the job:
[..]
// for the controller
$params['fields'] = array(
'DATE_FORMAT(created, '%d.%m.%Y') AS sdate',
'COUNT(savedtime) AS saved',
'COUNT(encashedtime) AS encashed');
$params['conditions'] = array(
'voucher_id' => array(8, 124, 120),
'created
Hi
I am new to CakePHP. I have installed the following in my ubuntu
machine.
PHP - 5.2.6-2ubuntu4.2
Apache2
MySQL 5.0.67
CakePHP - 1.2.2.8120
Everything went okay, my first CakePHP page came up fine (With two
warnings, Security.salt and database connection).
I have fixed the Security.salt issu
Thanks for the advice. Interesting idea to use a component and helper.
I might give that a shot and see where it gets me. The link looks like
a pretty good head start anyway.
-Blake
On Apr 24, 5:55 am, BlueC wrote:
> On Apr 22, 3:58 pm, blake wrote:
>
> > What controller would I use the comp
On Fri, Apr 24, 2009 at 11:10 AM, Martin Westin
wrote:
>
> Views, I haven't got my head into yet but it sounds like I probably
> should :)
Views can make a big difference. Well worth looking into.
Unfortunately, they require using query(). I thought I saw something
about being able to query view
If you have a stylesheet in app/webroot/css/main.css your layout file
should have:
echo $html->css('main');
Note that you do not include the extension, nor the directories. If
your stylesheet is in a subdirectory,
app/webroot/css/some_dir/main.css:
echo $html->css('some_dir/main');
It's pretty
Bump your debug up to 2 in core.php. I suspect the 404 you're seeing
is due to debug being at 0. There's likely an error in there
somewhere.
On Fri, Apr 24, 2009 at 8:19 AM, forrestgump wrote:
>
> hey guys,
> I ran into a problem with the model and table naming conventions
>
> I have the fo
In your DishType model, you have
var $belongsTo = 'DishType';
It should be
var $belongsTo = 'Dish;
yes?
On Fri, Apr 24, 2009 at 4:58 AM, holub.mic...@gmail.com
wrote:
>
> Hi allI've got the following data model
>
> dishes
> - id (PK)
> - name
> - dish_type_id (FK to dish_types)
>
> dish
Views, I haven't got my head into yet but it sounds like I probably
should :)
That is a lot of time for so few queries IMHO. Possibly one or a few
are taking very long because they return many rows. Whenever I return
more than 20 rows of anything I usually just want to count them or
somehow pull
On 04/24/2009 05:08 PM, Dave Maharaj :: WidePixels.com wrote:
>
> Can someone provide info on how to speed things up beyond what I have been
> doing?
>
I don't know what you have been doing but here's Matt's '8 Way for speed'
http://www.pseudocoder.com/archives/2009/03/17/8-ways-to-speed-up-ca
What can I do for the online server
There owner cannot be changed
Permissions I have assigned
But still not working
Thanks for the reply!
On Apr 24, 8:02 pm, Faza wrote:
> Make sure that the directory is chown to www server's user.
>
> e.g. in my Debian I did:
> chown -R www-data:www-data /pat
Most likely: Mod Rewrite not running or .htaccess files missing.
On Apr 24, 4:47 pm, Nature Lover wrote:
> Hi!
>
> I have downloaded CakePHP latest stable release.
> extracted on the test server with 755 permission on everything and 777
> on tmp folder.
>
> The home page is showing with the d
Make sure that the directory is chown to www server's user.
e.g. in my Debian I did:
chown -R www-data:www-data /path/to/cake/
chmod -R 755 /path/to/cake
chmod -R 777 /path/to/cake/tmp
Never had any permission-related issues.
Nature Lover pisze:
> Hi!
>
> I have downloaded CakePHP latest stable
Hello,
I have nice SQL query which makes most of the work for me, but i have
no plan how to convert it to a cakephp conform condition array. I'm
aware of the possibility to make a custom query, but i'm trying to
avoid this.
May someone can help me with this?
Here is the statement:
SELECT DATE_
Hi!
I have downloaded CakePHP latest stable release.
extracted on the test server with 755 permission on everything and 777
on tmp folder.
The home page is showing with the default layout but not stylesheet
coloring.
In the FireBug HTML coding the 404 errors is return for default
stylesheet of c
I use database views, at least for the view pages, if possible.
It's faster to perform joins db-side, and then return just a simple view
to CakePHP.
My 0.02USD
Dave Maharaj :: WidePixels.com pisze:
> I was hoping to get some general tips on how to speed up load time and cut
> down on the numb
I was hoping to get some general tips on how to speed up load time and cut
down on the number of queries in a request.
I have for example 18 queries took 123 ms for 1 page. I have been cleaning
up find queries to use contain and only query fields I need cleaning out
ones not needed, unbind model
Just for the heck of it, try changing your field's name to something
else. It's possible that cake handles 'password' fields a particular
way.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post
Hello Guys..
I'm two days tryin to understand and trying to get Translate Behavior
working..
I've folowing the manual (http://book.cakephp.org/view/92/Translate)
OK, i have a table i18n and my model is ok.
After few hours looking for a example how to translate my records i found
this test:
htt
I have not set security set hash anywhere
Im using the following
$this->Auth->userModel = 'Member';
$this->Auth->loginAction = array('controller' => 'members');
$this->Auth->autoRedirect=true;
$this->Auth->allow('register');
--~--~-~--~~~
hey guys,
I ran into a problem with the model and table naming conventions
I have the following:
1)model: department.php :-
2)contoller: deparments_conrtoller.php :-
3)View folder: departments and index.php:-
TEST!!!
here is the problem when i view the page (appname)/deparments i get
Hi,
On my site i have a forum and i would like to permit users to add
images to their posts. So first I had a web-editor for html. And I'm
considering an BBcode editor for security reasons.
But for both solutions there is a problem: The img tags are saved in
the DB, for example:
http://www.examp
As Miles J asked you about, has you changed the encryption function -
like Security::setHash('md5'); - to something else?
What other settings have you set in the Auth component?
I ask because we know that the password is submitted, but only gets
into the $this->data array, when Auth is not activ
Mister,
I'll be damn. Works perfectly, and - what is more than expected - I
understand why!
Thanks a bunch.
Damn. Awesome :D
> Some of what you want to do is possible with the set class; other bits
> would be more complicated.
>
> With this approach, the best you could achieve would be a nasty
Some of what you want to do is possible with the set class; other bits
would be more complicated.
With this approach, the best you could achieve would be a nasty mess
of array_combine, array_keys and various set calls, all nested and
difficult to follow.
Although I love the Set class with all my
Miles
Configure::write('Security.level', 'medium');
/**
* A random string used in security hashing methods.
*/
Configure::write('Security.salt',
'DsssggYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
ALSO IN DEBUGGING output
1 DESCRIBE `members`
2 SELECT `member`.`id`, `member`.`u
We will be there
big rgd AgBorkowski
http://lowcy.com.pl
On 24 Mar, 06:24, Nate wrote:
> After much hype and speculation, the next CakeFest event, which will
> take place in Berlin beginning July 9th, has been officially
> announced. You can read the full details, along with some other
> impor
In cases like what you are looking at it tends to work a bit better if
you rather do the find on the model you want to filter.
Something like:
$alert_ids = $this->Alert->AccountAlert->find (
'all',
array (
'conditions'=> array (
'Acco
The installation is the same regardless of windows or Linux. Put it
into the document root for your server software and change the
required files.
On Apr 24, 12:10 pm, "Faza" wrote:
> Hello there!
>
> I did my first install following the below tutorials:
>
> http://book.cakephp.org/view/29/Insta
Try also debug($_POST); just to see if it is received from the
browser!
Turn off Auth and see if the data comes into the controller!
John
On Apr 24, 10:29 am, Malcolm Krugger
wrote:
> Ok here is the view
>
> echo $form->create('Member' ,array('controller' => 'Members' ,
> 'action' => 'regist
On Apr 22, 3:58 pm, blake wrote:
> What controller would I use the component in to pass the data through
> to default.ctp?
I'm also new to cake but since noone else is answering I would guess
in the AppController (/app/app_controller.php)
I also have a Menu component and a Menu helper that I ca
Hello there!
I did my first install following the below tutorials:
http://book.cakephp.org/view/29/Installation-Preparation
http://book.cakephp.org/view/32/Installation
(NB it's for Linux)
Don't have any experience with CakePHP installed on Windows, so probably
someone could provide a link for
Hello Together,
I want to link two Models without using a Foreign Key, but using some
Conditions instead. Here is my example:
Model:
-
class Category extends AppModel {
var $name = "Category";
var $actsAs = array("Containable");
var $hasMany = array(
What is your security salt, or your encrypting function set to?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this
I'm new to PHP, with little practice of OOP, and I'm trying to extend
the DomDocument class (in DOM) with a method that runs an XPath
selection:
class ExtDomDocument extends DomDocument {
public function selectNodes($xpath) {
$processor = new DOMXPath($this);
Good morning, I have a problem and seems that there is no answer in
internet. I have a site ( http://www.festeoneste.com ) whit some pages
reserved to the registered users. I want google adsense to crawl also
that pages, and it's possible to set in the adsense settings, an
username and a password.
Hi all
I was wanting to know if it is by design that the $params argument is
immutable in Dispatcher::_invoke()?
I'm working on a SEF solution where I'd like to do the slug translation in
the beforeFilter of my App Controller, and then set $this->params['pass'][0]
to be the id of my translated slu
I try so many manual but i can't how to install cakephp any one help
to me , it have any exe file or what it done after install .
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group
Hi everybody, I am just getting started with Cake and ran into
something that is stumping me.
If I build a controller this way everything works fine:
---
Would you like to build your controller interactively?
Warning: Choosing no will
Thats great I have that done, I am struggling more with the correct
code to place in the default.ctp and if I have to call the CSS any
where else. Thanks for your reply so far.
On Apr 24, 1:49 am, brian wrote:
> By default, your stylesheets should be in webroot/css.
>
>
>
> On Thu, Apr 23, 2009
i have the same problem most of them in many ajax (suggest) request,
strategy is simple my script after 4th+n request return sql debug
after that every action were logged out
at past i create fit request controler for eg. xhr_controller >
controller,
so my fit controler loks like
XhrController
Hi allI've got the following data model
dishes
- id (PK)
- name
- dish_type_id (FK to dish_types)
dish_types
- id (PK)
- name
menus
- id (PK)
dish_menus
- id (PK)
- dish_id (FK to dishes)
- menu_id (FK to menus)
now, my associations look like the following...
class Dish extend
I never even KNEW there was a CakePHP plugin for WB!
Damn, that's going to save me even more time! :-)
On Apr 23, 3:01 pm, Karsten Wutzke wrote:
> I'm referring to
>
> http://forums.mysql.com/read.php?155,258646,258824#msg-258824
>
> The CakePHP plugin for MySQL Workbench is supposed to be wor
Hello again,
this is the array I'm working on:
Array
(
[0] => Array
(
[Design] => Array
(
[id] => 39
[design_no] => 1
[job_title] => gjgfjyjgyjf
[expected_date] => 2009-04-14
Hi together,
i need your help for changing the configuration i can use the free SSL
Proxy of my Webhost.
My "normal" URL i call my webapplication is (for example) this:
http://www.mydomain.com/myapplication/
if i want to use a SSL secured connection to my application i've the
possibilitie to u
Ok here is the view
create('Member' ,array('controller' => 'Members' ,
'action' => 'register'));
echo $form->input('Member.username');
echo $form->input('Member.password');
echo $form->input('Member.firstname');
echo $form->input('Member.lastname');
echo $form->input('Member.emailid');
echo $fo
Read the article on Containable, implemented it and
DAMN!
works like a charm!
Meanwhile, I've also added a slight modification to the table, so I can
make a hasMany relation.
Now, all I need is to learn to use Class::Set, to modify the array I have.
Thanks for help so far! *thumbs up*
>
> 2009
79 matches
Mail list logo