Jump to content

jagguy

Members
  • Posts

    226
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

jagguy's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. BTW thanks for the replies and all the links which I had a good look at.
  2. Hi, Thanks for the replies. There are no instructions for cakephp and windows for highcharts. To be honest I have given up on the project as this is just to complicated. I am a strong believer in KISS . The documentation isnt there. Unless someone has actually setup this themselves on windows with cakephp/highcharts we are kind of guessing?
  3. Well I am certainly not blaming anyone here for highcharts not working. The issue is that the complete instructions to this setup doesnt exist so i am asking many forums for an answer. I have had posts that this is a simple thing to setup but that doesnt appear to be the case. If I run a cakephp script 'in a controller' with highcharts I just get a "highcharts not found error." In vendors I have the highchartsphp dir with src files and I place these files as well in highcharts. I have the files and they seem in the right dir but I cant get this to work. eg I have the correct names I am referencing App::import('Vendor', 'HighchartsPHP/Highchart'); class ChartsController extends AppController { public function index() { $chart = new Highchart(); /////////////error not found
  4. OK I got the json file to run in cakephp dir and now I have a few dir in a vendor dir. I got no error. . what has happened here and I have a whole lot of files I need to place where. I am am sorry but I really need a bit more explanation because I just get more bits and pieces. I place the highcharts dir in vendor? I still get a an Class 'Highchart' not found in my code so it hast worked
  5. Hi, No that isnt it. I just get an error as there is no name anywhere on my computer 'ghunti/highcharts-php:~3.0' composer require 'ghunti/highcharts-php:~3.0' gives an error of 'could not parse version constraint ~3.0, UnexpectedValueException I have been to 3 other forums and no one can tell me what to do yet but thanks anyway for trying. 1)I have the download called highcharts3 (dir) 2)I have the cakephp project.called cakephp5 I place the download 1) where?and how do I install it with composer
  6. Hi, I am having an awful time creating a composer.json file to install highchartsPHP for windows cakephp. I dont know how exactly to create a file. The examples I have for cakephp composer is for linux. I download the highchartsphp and I place it where? I have composer installed and I do what as version 3 doesnt require composer . https://github.com/ghunti/HighchartsPHP I place the highcharts dir where ? where I should place files to install? How do I install this EXACTLY and does this require mean I have dir called ghunti? I really need some decent how to install as this really isnt good enough . It has been 2 days since I tried to install this highchartsPHP for cakePHP. { "require": { "ghunti/highcharts-php": "~3.0" } }
  7. ok you have made it clear about no (major)issues to expect. So can I conclude you can place text files on either windows/linux without worrying about compatibility issues? With cpanel I have a direct link to files where I can download, why would I use a FTP to just download files when I can do this with cpanel?
  8. I need to copy php files from remote linux (apache) server to windows usb drive. I am using php windows but the files were created in php under linux. Do I just download them or do I need to do something to make this work
  9. Hi, I am trying to setup cakephp cake console in win7 and run cake bake as in the link below.I set up the env variable in win7 as below with a php and cakeapp entry in this Path.I have easyPHP 12.1 and php works fine. I get an error with php in failing to load. dynamic library but the php dir is in the path below so I have no idea . I cant set my php env var is my problem . The php.ini is in this dir specified below. http://www.nurelm.com/themanual/2012/01/30/running-cakephp-command-line-tools-in-windows/ E:\Program Files\EasyPHP-12.1\php\php546x121019214357\;E:\AA-website design\acl\app\Console\;
  10. ok I am getting an error over something simple, can anyone help Also how do i delete previous threads that I dont wont to continue? Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Post.user_id' in 'on clause' SQL Query: SELECT `Post`.`id`, `Post`.`title`, `Post`.`body`, `Post`.`created`, `Post`.`modified`, `User`.`two`, `User`.`three`, `User`.`id` FROM `jagguy`.`posts` AS `Post` LEFT JOIN `jagguy`.`users` AS `User` ON (`Post`.`user_id` = `User`.`id`) WHERE 1 = 1 class User extends AppModel { public $hasMany = 'Post'; } class Post extends AppModel { /*var $name='User';*/ public $belongsTo = array('User'); } controller //// class PostsController extends AppController { public function home2() { $everything= $this->Post->find('all', array('contain' => array('User'))); } view <?php foreach ($everything as $item): echo '<tr><td>'. $item['Post']['id']. '</td>'; echo '<td>'. $item['Post']['title'].'</td>'; echo '<td>'. $item['Post']['body'].'</td>';
  11. jagguy

    blank model

    Hi, I have a cakePHP program that works and displays data from a database table. The part I dont understand and I couldnt find anything on the cakephp blog as yet was the model was left blank? q1) The model is left blank but still works so what is the default behaviour here for the model? It doesnt seem to be needed to do anything i?. q2)I am selecting all the data from 1 table but how do I add a sql statement to select part of the table or a join of 2 tables? the find 'all' seems to just do that only in finding all data from a table. <?php class Post extends AppModel { /*var $name='User';*/ } ?> <?php class PostsController extends AppController { public $helpers=array('Html','Form'); public function index() { $this->set('posts',$this->Post->find('all')); } public function home() { $this->set('posts',$this->Post->find('all')); } } ?> view /// .. <?php foreach ($posts as $item): echo '<tr><td>'. $item['Post']['id']. '</td>'; echo '<td>'. $item['Post']['title'].'</td>'; echo '<td>'. $item['Post']['body'].'</td>'; echo '<td>'. $item['Post']['created'] .'</td>'; echo '</tr>'; endforeach; unset($item); ?>
  12. I am already doing this? strange advice.
  13. Hi, I installed cakePHH on my win 7 , apache, easyphp laptop. php files work fine but I cant get anything to run with cakephp which is extracted where I can run html files. I set fatabase config file, ran index.php and everything seemed fine until i tried to do something my error is Missing ControllerError: UserController could not be found. Error: Create the class UserController below in file: app\Controller\UserController.php And I followed http://www.grasphub.com/2013/01/print-hello-world-in-cakephp/
  14. Yes I am in the correct file but I dont see this as recommnded from the post NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> DocumentRoot "D:/code/" ServerName localhost </VirtualHost> I dont get creative about settings BTW
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.