Jump to content

alvin567

Members
  • Posts

    161
  • Joined

  • Last visited

Everything posted by alvin567

  1. ( ! ) Warning: include(Cake\bootstrap.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\swr_app \webroot\index.php on line 79 Call Stack # Time Memory Function Location 1 0.0017 387168 {main}( ) ..\index.php:0 ( ! ) Warning: include() [function.include]: Failed opening 'Cake \bootstrap.php' for inclusion (include_path='C:\wamp\www\lib;.;C:\php \pear') in C:\wamp\www\swr_app\webroot\index.php on line 79 Call Stack # Time Memory Function Location 1 0.0017 387168 {main}( ) ..\index.php:0 ( ! ) Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your \cake core directory and your \vendors root directory. in C:\wamp\www\swr_app\webroot\index.php on line 88 Call Stack What do I actually have to do?
  2. For example,I don't know what the fields are I want to search for the table instead?
  3. explain to me,what is crawling?
  4. $person = array(1,2,3,4,5,6,7,8,9,10); foreach($person as $person){ $sizeOfCompany = $this->Claim->query("Select count(*),count(*) * 100/(Select count(*) from claims) from claims where size = '$person' "); # of person,No of firms,% of contributions array_push($data,array($person,$sizeofCompany[0][0]['computed'],$sizeofCompany[0][0]['computed1'] . '%')); } $sizeofCompany = $this->Claim->query("Select count(*),count(*) * 100/(Select count(*) from claims) from claims where size Between 11 and 19"); array_push($data,array('11-19',$sizeofCompany[0][0]['computed'],$sizeofCompany[0][0]['computed1'] . '%')); $sizeofCompany = $this->Claim->query("Select count(*),count(*) * 100/(Select count(*) from claims) from claims where size Between 20 and 40"); array_push($data,array('20-40',$sizeofCompany[0][0]['computed'],$sizeofCompany[0][0]['computed1'] . '%')); $sizeofCompany = $this->Claim->query("Select count(*),count(*) * 100/(Select count(*) from claims) from claims where size > 40"); array_push($data,array('Over 40',$sizeofCompany[0][0]['computed'],$sizeofCompany[0][0]['computed1'] . '%')); array_push($data,''); How can i improve the quality of this code? I want to find the range 1,2,3,4,5,6,7,8,9,10,11-19,20-40,Over 40 And then i want to calculate the percentage of the total count
  5. maybe you can add more method?
  6. how do I differentiate between helper and behaviours?how do I point out the difference?
  7. if you can't find any framework that fits your need,just scrape it and use the normal way then.
  8. is it helpful to download existing project from a systems to play with it?
  9. so does it mean that afterfind when find condition will be executed?
  10. i agree it sucks so how do I go by case by case basis? should I use an array or a loop construct?
  11. Lets say I want to query from cakephp the range of number 1,2,3,4,5,6,7,8,9,10-20,20-40 of a certain group how can I do so?
  12. How do I check if $val is empty? then if empty I want to set it as a todays date
  13. Hi everyone,what is the difference between beforerender and beforefilter?
  14. On top of that I have this error? Warning (2): mssql_query() [function.mssql-query]: message: Conversion failed when converting date and/or time from character string. (severity 16) [CORE/cake-1.2.6/libs/model/datasources/dbo/dbo_mssql.php, line 181] Warning (2): mssql_query() [function.mssql-query]: General SQL Server error: Check messages from the SQL Server. (severity 5) [CORE/cake-1.2.6/libs/model/datasources/dbo/dbo_mssql.php, line 181] Warning (512): SQL Error: Conversion failed when converting date and/or time from character string. [CORE/cake-1.2.6/libs/model/datasources/dbo_source.php, lin
  15. Great!! $conditions = array( 'Renewal.year' => $renewal_period, 'Renewal.void' => 0, 'Renewal.approved' => 3, 'Claim.void' => 0, 'Claim.draft' => 0 ); Can I do this? array_push($conditions, array('Claim.created BETWEEN ? and ?' => array(strtotime($start), strtotime($end))));
  16. Is there any way to reverse engineer the cakephp application into a class diagram?
  17. Is there anyway to revise engineer the mssql database into the ERD diagram?
  18. what could be the problem,I know it is empty,one more clue,how do i check it is 1-1-1970 which is the date type?
  19. $conditions['Claim.created <= '] = date('Y-m-d', $m2); lets say I have two date,$m1 and $m2,how do I set the condition to be between the date?
  20. :confused: I am really confuse where I should go from this? I don't have much chance the debug the application?
  21. Hi there, my boss asked me to take over an existing projects,however my colleague is currently overseas,my boss ask me to ask my colleague the questions and my doubts,and up till now there have been not much progress yet.I am really worried and tensed that I may not be able to process. Currently,the project is using cakephp framework,I was tasked to edit only one single files and not others,whats more,I do not have business knowledge about the application I am working in and there is no appropiate documentation,I am really struggling badly now
  22. Warning: include(cake\bootstrap.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\XXXXXXXXXX\app\webroot\index.php on line 86 Warning: include() [function.include]: Failed opening 'cake\bootstrap.php' for inclusion (include_path='C:\xampp\htdocs\lawsocscheme;C:\xampp\htdocs\lawsocscheme\app\;.;C:\xampp\php\PEAR') in C:\xampp\htdocs\lXXXXXXXXXX\app\webroot\index.php on line 86 Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your \cake core directory and your \vendors root directory. in C:\xampp\htdocs\XXXXXXXXXX\app\webroot\index.php on line 87 how can i solve this error?
  23. Hi,there,I'm twenty-four this year from singapore,nice to meet all the follow coder here,right now I am having an internship. Wish to learn more about php configurations and web security.I want to have a career as a web developer.
  24. The ip address is 192.156.1.XX, I need to access it through a MSSQL client 2005 but it seems that it is local to them only.
×
×
  • 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.