just use ob_flush(); after every debug call
debug($var); ob_flush();
or wrap it into a method and call it out()
$this-out($var);
Am Dienstag, 6. März 2012 07:23:47 UTC+1 schrieb andrewperk:
debug=1 does not work when testing controllers with the testAction
method using the web runner.
Hi,
class DetailsController extends AppController{
var $name = 'Detail';
public function index($id){
if($id){
$results = $this-Detail-find('first', $conditions['Gesamtobjekt']);
App::uses('Objekt', 'Model');
$results = $this-Objekt-translateStrings($results);debug($results);
}
}
}
Is there a model association between the two models? If so, you can daisy chain
them:
$results = $this-Detail-Objekt-translateStrings($results);debug($results);
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 6 Mar 2012, at 11:14:42, heohni wrote:
Hi,
class DetailsController
No there is not.
But I just found out that I can use it this way:
$results = Objekt::translateStrings($results);
But - the function translateStrings() is using inside a call to
$this-ExtractUet() and now it happens that I get the message
*Fatal error*: Call to undefined method
Put in a Behaviour and apply the behaviour to each model that needs to use it.
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 6 Mar 2012, at 11:37:03, heohni wrote:
No there is not.
But I just found out that I can use it this way:
$results = Objekt::translateStrings($results);
If you want user.id then call it as $this-Auth-user('id'); it ll return
user.id
On Tuesday, 6 March 2012 06:54:50 UTC+5:30, dariob wrote:
Hi,
why $this-Auth-user() return me only username and password and no
user.id ???
debug($this-Auth-user());
array(
'User' = array(
Have you tried to declare a displa field for the profile model?
and are you sure that you are not trying to have an hasOne
relationship rather than an hasMany.
On 25 Feb, 10:30, Miguel Ángel Moreno Armenteros
miguel.s.addr...@gmail.com wrote:
PS: This happens with Cake 2.0
I installed cake 1.3
Use:
$this-load('Objeckt); instead of App::uses()
Em terça-feira, 6 de março de 2012 08h14min42s UTC-3, heohni escreveu:
Hi,
class DetailsController extends AppController{
var $name = 'Detail';
public function index($id){
if($id){
$results = $this-Detail-find('first',
Hi
I am trying to display image retrieved using MediaView based
Controller.
My controller looks like this:
CONTROLLER:
function getImg(){
$this-autoLayout = false;
if($this-RequestHandler-isAjax()){
Configure::write('debug', 0);
}
Currently I am selecting an development framework, doubted between
CakePHP, CodeIgniter, and Symfony. But going for CakePHP, one of the
reasons is the build in authentication and authorization module. Can
somebody tell me whether the User Management plugin below is a
replacement or an add on to
On 2 Mrz., 19:59, Rob rcole...@mailforce.net wrote:
The 2.0 branch on github does in fact work with 2.1 RC. The correct
location for the files is app/Plugin/MenuBuilder. It looks like your
problem is how you're adding it to the helpers array. The key should be
MenuBuilder.MenuBuilder, which
You could use UUIDs instead which are automatically created by Cake and a
nice replacement for auto increments.
On Monday, March 5, 2012 3:42:39 AM UTC-8, Kosmo wrote:
Hi there,
I know this could be a critical hole in my application,
anyhow - is there a way to set an article-id like
I would get all users who *are* following and then look up everyone except
them.
$followers = $this-User-Follow-find('all', array(
'conditions' = array(
'Follow.followed_by' = $this-Auth-user('id')
)
));
$nonfollowers = $this-User-find('all', array(
'conditions' = array(
'not' = array(
So it looks like your joins are working (am I wrong) but you're getting
null data joined for those who are missing photos. Is this correct?
If so, try adding a condition:
$conditions = array(
'Product.category_id'= $cats
'not' = array(
'PhotoBig.id' = null,
'PhotoSmall.id' = null
)
);
On
Great, making it a method works perfect, thanks a lot.
On Mar 6, 2:56 am, euromark dereurom...@googlemail.com wrote:
just use ob_flush(); after every debug call
debug($var); ob_flush();
or wrap it into a method and call it out()
$this-out($var);
Am Dienstag, 6. März 2012 07:23:47 UTC+1
Hi when i am Setting up Debugkit,
i came through this set the debug mode to at least 1.
I DONT no how to set up debug mode to at least 1
Can any one out there help me...
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP
Look at about line 36 in /app/config/core/php:
Configure::write('debug', 2);
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 6 Mar 2012, at 20:01:59, kalai wrote:
Hi when i am Setting up Debugkit,
i came through this set the debug mode to at least 1.
I DONT no how to set up
Sorry I was away on vacation but after I got back I've been trying
everything concerning the installation. I have installed 2.1 and still
getting the same error. I followed this guide:
http://book.cakephp.org/2.0/en/installation/advanced-installation.html
and tried everything it stated. I
Hi, i'm having lots of problems, i don't know what to do
This is what i did :
1.- Installed XAMP
2.- Made a new database (called cake) with phpMyAdmin.
2.- Downloaded cakePHP 2.0
3.- Bake !
4.- Set permissions to tmp directory
When I requested localhost on chrome everything went ok but
After Setting i am getting the following error.
Warning (512): /var/www/vhosts/vtest.host-it.ou.edu/httpdocs/WayFinder/
app/tmp/cache/ is not writable [CORE/cake/libs/cache/file.php, line
267]
Warning (512): /var/www/vhosts/vtest.host-it.ou.edu/httpdocs/WayFinder/
app/tmp/cache/persistent/ is not
If you're going to use a Base64 data URI you'll need to encode the output.
Are you trying to do this because the images are above webroot?
Also, there's a problem with this line:
header('Content-type: $type');
Where does $type come from? Anyway, I think MediaView handles that header.
On Tue,
I'm not familiar with the plugin but it seems to be a bunch of
potentially useful stuff that you would otherwise need to create
yourself. Cake's AuthComponent handles authentication only. The plugin
is for *managing* users. If your app will require a lot of
administrative stuff for your users,
Create a simple PHP (not Cake) script to connect to your DB and see if
that works.
On Tue, Mar 6, 2012 at 3:28 PM, Daniel Carrillo Broeder
dcbroe...@gmail.com wrote:
Hi, i'm having lots of problems, i don't know what to do
This is what i did :
1.- Installed XAMP
2.- Made a new database
I can't figure out what settings are my CakeEmail errors. My protected
function looks like this
protected function sendActivation($user_id) {
$this-CakeEmail-reset();
$this-User-ActivationCode-deleteAll(array('type' = 'activation',
'user_id' = $user_id));
On Tue, Mar 6, 2012 at 3:34 PM, kalai mekin...@gmail.com wrote:
After Setting i am getting the following error.
Warning (512): /var/www/vhosts/vtest.host-it.ou.edu/httpdocs/WayFinder/
app/tmp/cache/ is not writable [CORE/cake/libs/cache/file.php, line
267]
You need to set the permissions fr
Have you checked the mail log?
On Tue, Mar 6, 2012 at 3:53 PM, damanlovett ed...@lovettcreations.org wrote:
I can't figure out what settings are my CakeEmail errors. My protected
function looks like this
protected function sendActivation($user_id) {
$this-CakeEmail-reset();
Yes, I know, but didn't work for me :)
Thanks to Thiago*,* now works!
Il giorno martedì 6 marzo 2012 12:24:10 UTC+1, karthik ha scritto:
If you want user.id then call it as $this-Auth-user('id'); it ll return
user.id
On Tuesday, 6 March 2012 06:54:50 UTC+5:30, dariob wrote:
Hi,
why
It seems like you should understand basic web development and PHP first.
On Tuesday, March 6, 2012 12:01:59 PM UTC-8, kalai wrote:
Hi when i am Setting up Debugkit,
i came through this set the debug mode to at least 1.
I DONT no how to set up debug mode to at least 1
Can any one
I'm a newbie so I don't know about the mail log, but in the error log I get
Error: [MissingActionException] Action UsersController::js() could not be
found.
and
Error: [SocketException] Could not send email.
Which I don't know what they mean. I changed the email.php file to Mail
hoping that
Can you elaborate on base64 encode comment? I thought the binary data is
already needed to be encoded. do you have examples of doing this?
thanks in advance.
-bc
header comment is not needed as cake MediaView does that for you (as you
said). I had this in and out while trying different things.
Hi all,
I'm sure we've all heard about what happened with RoR and Github just
recently -
https://github.com/rails/rails/issues/5228
http://arstechnica.com/business/news/2012/03/hacker-commandeers-github-to-prove-vuln-in-ruby.ars
So I can see how this could possibly be done in Cake as well
Hi!
I want to use CakePHP's ACL Authorization in an Application where I
don't create html on the server-side, but instead just share the
information and it is created in the browser through JS (extjs).
Therefore I need to know for each Articles model entry which CRUD
rights I have. What would be
Hi all,
I'm sure we've all heard about what happened with RoR and Github just
recently -
https://github.com/rails/rails/issues/5228
http://arstechnica.com/business/news/2012/03/hacker-commandeers-github-to-prove-vuln-in-ruby.ars
So I can see how this could possibly be done in Cake as
On Tue, Mar 6, 2012 at 4:30 PM, damanlovett ed...@lovettcreations.org wrote:
I'm a newbie so I don't know about the mail log
I meant the server's mail log, not Cake's.
but in the error log I get
Error: [MissingActionException] Action UsersController::js() could not be
found.
Do you have a
On Tue, Mar 6, 2012 at 4:32 PM, Blues Clues bluesclu...@gmail.com wrote:
Can you elaborate on base64 encode comment? I thought the binary data is
already needed to be encoded. do you have examples of doing this?
You need to base64_encode() the binary data. MediaView reads the
binary in buffered
You could set in the DOM. In your view, set class names or something
similar in your eg. div tags. The have your JS modify things based on
what it finds.
On Tue, Mar 6, 2012 at 4:40 PM, Roland roland.schuetz.vie...@gmail.com wrote:
Hi!
I want to use CakePHP's ACL Authorization in an
Hmm.. that wasn't what I wanted to ask, let me try it new:
Is there an efficient way to get for all 'articles' the allowed CRUD
actions for the currently logged in user?
So I can get something like this:
array(array(
'id' = 34, // the article id
'_read' = true,
'_create' = true,
On Tue, Mar 6, 2012 at 8:04 PM, Roland roland.schuetz.vie...@gmail.com wrote:
Hmm.. that wasn't what I wanted to ask, let me try it new:
Is there an efficient way to get for all 'articles' the allowed CRUD
actions for the currently logged in user?
So I can get something like this:
Sorry, you might want to remove that 'Permission._read = 0' condition
near the bottom.
--
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 questions.
To
Don't go to /localhost/cakephp/index.php. Just go to /localhost/cakephp
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 6 Mar 2012, at 20:30:48, amg55nj wrote:
Sorry I was away on vacation but after I got back I've been trying everything
concerning the installation. I have installed
When I do, I just get a list of files in the directory which includes app,
lib, plugins, vendors, build.properties, index.php, etc.
--
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
OK - you're getting somewhere though. Go through the tutorial again and check
your set up - which isn't right yet. Check that there are .htaccess files in
these three places:
cakephp
cakephp/app
cakephp/app/webroot
They are often missing as they are treated as hidden files and therefore not
Thanks for the replies and helping me out. I have the files in the 3 places
and have mod rewrites enabled. I have gone through the installation and
advanced installation multiple times with no luck.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out
What errors are you getting now?
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 7 Mar 2012, at 05:35:53, amg55nj wrote:
Thanks for the replies and helping me out. I have the files in the 3 places
and have mod rewrites enabled. I have gone through the installation and
advanced
Exact same error.
Missing controller
*Error: **Index.phpController* could not be found..
--
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
What url are you trying to go to?
Jeremy Burns
Class Outfit
Tel: +44 (0) 208 123 3822
Mob: +44 (0) 7973 481949
Skype: jeremy_burns
http://www.classoutfit.com
On 7 Mar 2012, at 05:41:09, amg55nj wrote:
Exact same error.
Missing controller
Error: Index.phpController could not be found..
localhost/cakephp/index.php
I have to go to index.php because if I just go to localhost/cakephp/ I get
a listing of the files in the directory.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org
You *don't* have to go to index.php - no-one ever does with Cake. It will break
if you do. Do not try and make it work that way.
You can't have checked your implementation (without going to index.php) in the
few minutes since we have been on mail. Go back and do some checks - without
going to
Ok so I used this guide to check my implementation:
http://book.cakephp.org/2.0/en/installation/advanced-installation.htmlhttp://book.cakephp.org/2.0/en/installation/advanced-installation.html#apache-and-mod-rewrite-and-htaccess
Do you suggest anything else?
--
Our newest site for the
Are you sure mod_rewrite is correct? Have you restarted your web server?
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 7 Mar 2012, at 05:53:35, amg55nj wrote:
Ok so I used this guide to check my implementation:
Yes, I just enabled it by deleting the # in front of the LoadModule line in
the Apache httpd file. And I restarted my webserver afterwards.
--
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
So it wasn't enabled? And what's happening now?
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 7 Mar 2012, at 06:04:30, amg55nj wrote:
Yes, I just enabled it by deleting the # in front of the LoadModule line in
the Apache httpd file. And I restarted my webserver afterwards.
--
Sorry it was already enabled. I was writing the steps I had taken
previously. I am still getting the directory listing by going to
localhost/cakephp/.
Just a notewhen I access localhost/phpmyadmin/ I also get a directory
listing. I have to click on index.php to be able to access my
Yup. Your server isn't set up correctly. When your server works properly, the
.htaccess files will route you from the site root (in your case /cakephp) to
/cakephp/app/webroot/index.php. If that isn't happening your server or your
cake set up is wrong. The fact that you are getting directory
Ok I'll try to see what is wrong with my Apache server. You wouldn't happen
to know where I should look, would you? Possibly a configuration in the
httpd file?
Thanks for walking me through everything and pinpointing it to this point.
--
Our newest site for the community: CakePHP Video
Hi, I think you need to remove Indexes in Options directive in your
apache host config or in the cake's root .htaccess
#.htaccess, avoid directory index
Options -Indexes
Il 07/03/2012 07:20, amg55nj ha scritto:
Ok I'll try to see what is wrong with my Apache server. You wouldn't
happen to
Hi Jeremy,
thank you.
I will give it a try.
On 6 Mrz., 16:17, jeremyharris funeralm...@gmail.com wrote:
You could use UUIDs instead which are automatically created by Cake and a
nice replacement for auto increments.
On Monday, March 5, 2012 3:42:39 AM UTC-8, Kosmo wrote:
Hi there,
57 matches
Mail list logo