Suche senden
Hochladen
实战Ecos
•
1 gefällt mir
•
1,268 views
W
wanglei999
Folgen
从一个具体的实例开始讲解ecos
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 45
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Silex Cheat Sheet
Silex Cheat Sheet
Andréia Bohner
Rails 3 overview
Rails 3 overview
Yehuda Katz
10 Things Every Plugin Developer Should Know (WordCamp Atlanta 2013)
10 Things Every Plugin Developer Should Know (WordCamp Atlanta 2013)
arcware
Single Page Web Apps with Backbone.js and Rails
Single Page Web Apps with Backbone.js and Rails
Prateek Dayal
Advanced RESTful Rails
Advanced RESTful Rails
Ben Scofield
Introducing Assetic: Asset Management for PHP 5.3
Introducing Assetic: Asset Management for PHP 5.3
Kris Wallsmith
You're Doing it Wrong - WordCamp Atlanta
You're Doing it Wrong - WordCamp Atlanta
Chris Scott
Using the Features API
Using the Features API
cgmonroe
Empfohlen
Silex Cheat Sheet
Silex Cheat Sheet
Andréia Bohner
Rails 3 overview
Rails 3 overview
Yehuda Katz
10 Things Every Plugin Developer Should Know (WordCamp Atlanta 2013)
10 Things Every Plugin Developer Should Know (WordCamp Atlanta 2013)
arcware
Single Page Web Apps with Backbone.js and Rails
Single Page Web Apps with Backbone.js and Rails
Prateek Dayal
Advanced RESTful Rails
Advanced RESTful Rails
Ben Scofield
Introducing Assetic: Asset Management for PHP 5.3
Introducing Assetic: Asset Management for PHP 5.3
Kris Wallsmith
You're Doing it Wrong - WordCamp Atlanta
You're Doing it Wrong - WordCamp Atlanta
Chris Scott
Using the Features API
Using the Features API
cgmonroe
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API
Caldera Labs
WordPress as a Content Management System
WordPress as a Content Management System
Valent Mustamin
Rails 3 Beautiful Code
Rails 3 Beautiful Code
GreggPollack
Assetic (Symfony Live Paris)
Assetic (Symfony Live Paris)
Kris Wallsmith
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Caldera Learn - LoopConf WP API + Angular FTW Workshop
CalderaLearn
Magento Live Australia 2016: Request Flow
Magento Live Australia 2016: Request Flow
Vrann Tulika
Be RESTful (Symfony Camp 2008)
Be RESTful (Symfony Camp 2008)
Fabien Potencier
Django Vs Rails
Django Vs Rails
Sérgio Santos
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2
RORLAB
Extend sdk
Extend sdk
Harsha Nagaraj
Apostrophe (improved Paris edition)
Apostrophe (improved Paris edition)
tompunk
devise tutorial - 2011 rubyconf taiwan
devise tutorial - 2011 rubyconf taiwan
Tse-Ching Ho
And the Greatest of These Is ... Rack Support
And the Greatest of These Is ... Rack Support
Ben Scofield
Action Controller Overview, Season 2
Action Controller Overview, Season 2
RORLAB
logic321
logic321
logic321
15.exemplu complet eloquent view add-edit-delete-search
15.exemplu complet eloquent view add-edit-delete-search
Razvan Raducanu, PhD
sfDay Cologne - Sonata Admin Bundle
sfDay Cologne - Sonata Admin Bundle
th0masr
Feeds drupal cafe
Feeds drupal cafe
Andrii Podanenko
J queryui
J queryui
Inbal Geffen
about me
about me
guest5f1fa8
商派电商基础设施产品
商派电商基础设施产品
wanglei999
Congress 2010
Congress 2010
villagegal
Weitere ähnliche Inhalte
Was ist angesagt?
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API
Caldera Labs
WordPress as a Content Management System
WordPress as a Content Management System
Valent Mustamin
Rails 3 Beautiful Code
Rails 3 Beautiful Code
GreggPollack
Assetic (Symfony Live Paris)
Assetic (Symfony Live Paris)
Kris Wallsmith
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Caldera Learn - LoopConf WP API + Angular FTW Workshop
CalderaLearn
Magento Live Australia 2016: Request Flow
Magento Live Australia 2016: Request Flow
Vrann Tulika
Be RESTful (Symfony Camp 2008)
Be RESTful (Symfony Camp 2008)
Fabien Potencier
Django Vs Rails
Django Vs Rails
Sérgio Santos
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2
RORLAB
Extend sdk
Extend sdk
Harsha Nagaraj
Apostrophe (improved Paris edition)
Apostrophe (improved Paris edition)
tompunk
devise tutorial - 2011 rubyconf taiwan
devise tutorial - 2011 rubyconf taiwan
Tse-Ching Ho
And the Greatest of These Is ... Rack Support
And the Greatest of These Is ... Rack Support
Ben Scofield
Action Controller Overview, Season 2
Action Controller Overview, Season 2
RORLAB
logic321
logic321
logic321
15.exemplu complet eloquent view add-edit-delete-search
15.exemplu complet eloquent view add-edit-delete-search
Razvan Raducanu, PhD
sfDay Cologne - Sonata Admin Bundle
sfDay Cologne - Sonata Admin Bundle
th0masr
Feeds drupal cafe
Feeds drupal cafe
Andrii Podanenko
J queryui
J queryui
Inbal Geffen
Was ist angesagt?
(19)
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API
WordPress as a Content Management System
WordPress as a Content Management System
Rails 3 Beautiful Code
Rails 3 Beautiful Code
Assetic (Symfony Live Paris)
Assetic (Symfony Live Paris)
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Magento Live Australia 2016: Request Flow
Magento Live Australia 2016: Request Flow
Be RESTful (Symfony Camp 2008)
Be RESTful (Symfony Camp 2008)
Django Vs Rails
Django Vs Rails
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2
Extend sdk
Extend sdk
Apostrophe (improved Paris edition)
Apostrophe (improved Paris edition)
devise tutorial - 2011 rubyconf taiwan
devise tutorial - 2011 rubyconf taiwan
And the Greatest of These Is ... Rack Support
And the Greatest of These Is ... Rack Support
Action Controller Overview, Season 2
Action Controller Overview, Season 2
logic321
logic321
15.exemplu complet eloquent view add-edit-delete-search
15.exemplu complet eloquent view add-edit-delete-search
sfDay Cologne - Sonata Admin Bundle
sfDay Cologne - Sonata Admin Bundle
Feeds drupal cafe
Feeds drupal cafe
J queryui
J queryui
Andere mochten auch
about me
about me
guest5f1fa8
商派电商基础设施产品
商派电商基础设施产品
wanglei999
Congress 2010
Congress 2010
villagegal
Cummunity HUB - Youth Content Creation
Cummunity HUB - Youth Content Creation
Atiba Phillips
Aml incidencia
Aml incidencia
Erick Fernando Huaina Cenizario
Transformative Learning
Transformative Learning
villagegal
Build your own wind turbine
Build your own wind turbine
pason de mexico
First Year Teachers' Experiences Directing the Work of Educational Assistants...
First Year Teachers' Experiences Directing the Work of Educational Assistants...
villagegal
Ecos rpc
Ecos rpc
wanglei999
Bacterial plasmids
Bacterial plasmids
Erick Fernando Huaina Cenizario
1756 pm008 -en-p
1756 pm008 -en-p
pason de mexico
商派信息安全解决方案
商派信息安全解决方案
wanglei999
Ecos基础应用介绍
Ecos基础应用介绍
wanglei999
什么是ECOS
什么是ECOS
wanglei999
Cummunity HUB - Our Beliefs
Cummunity HUB - Our Beliefs
Atiba Phillips
Bloomfilter
Bloomfilter
wanglei999
Andere mochten auch
(16)
about me
about me
商派电商基础设施产品
商派电商基础设施产品
Congress 2010
Congress 2010
Cummunity HUB - Youth Content Creation
Cummunity HUB - Youth Content Creation
Aml incidencia
Aml incidencia
Transformative Learning
Transformative Learning
Build your own wind turbine
Build your own wind turbine
First Year Teachers' Experiences Directing the Work of Educational Assistants...
First Year Teachers' Experiences Directing the Work of Educational Assistants...
Ecos rpc
Ecos rpc
Bacterial plasmids
Bacterial plasmids
1756 pm008 -en-p
1756 pm008 -en-p
商派信息安全解决方案
商派信息安全解决方案
Ecos基础应用介绍
Ecos基础应用介绍
什么是ECOS
什么是ECOS
Cummunity HUB - Our Beliefs
Cummunity HUB - Our Beliefs
Bloomfilter
Bloomfilter
Ähnlich wie 实战Ecos
Rails 3: Dashing to the Finish
Rails 3: Dashing to the Finish
Yehuda Katz
Gae Meets Django
Gae Meets Django
fool2nd
Refresh Austin - Intro to Dexy
Refresh Austin - Intro to Dexy
ananelson
Workshop quality assurance for php projects tek12
Workshop quality assurance for php projects tek12
Michelangelo van Dam
20130528 solution linux_frousseau_nopain_webdev
20130528 solution linux_frousseau_nopain_webdev
Frank Rousseau
Quality Assurance for PHP projects - ZendCon 2012
Quality Assurance for PHP projects - ZendCon 2012
Michelangelo van Dam
How to disassemble one monster app into an ecosystem of 30
How to disassemble one monster app into an ecosystem of 30
fiyuer
The Rails Way
The Rails Way
Michał Orman
Workshop quality assurance for php projects - ZendCon 2013
Workshop quality assurance for php projects - ZendCon 2013
Michelangelo van Dam
Unit testing after Zend Framework 1.8
Unit testing after Zend Framework 1.8
Michelangelo van Dam
Codeigniter : Two Step View - Concept Implementation
Codeigniter : Two Step View - Concept Implementation
Abdul Malik Ikhsan
Workshop quality assurance for php projects - phpbelfast
Workshop quality assurance for php projects - phpbelfast
Michelangelo van Dam
Zend Framework 1.9 Setup & Using Zend_Tool
Zend Framework 1.9 Setup & Using Zend_Tool
Gordon Forsythe
Building and deploying React applications
Building and deploying React applications
Astrails
Using WordPress as your application stack
Using WordPress as your application stack
Paul Bearne
CodeIgniter PHP MVC Framework
CodeIgniter PHP MVC Framework
Bo-Yi Wu
QConSP 2015 - Dicas de Performance para Aplicações Web
QConSP 2015 - Dicas de Performance para Aplicações Web
Fabio Akita
以Vue開發電子商務網站 架構與眉角
以Vue開發電子商務網站 架構與眉角
Mei-yu Chen
Angular JS2 Training Session #2
Angular JS2 Training Session #2
Paras Mendiratta
Desbravando Web Components
Desbravando Web Components
Mateus Ortiz
Ähnlich wie 实战Ecos
(20)
Rails 3: Dashing to the Finish
Rails 3: Dashing to the Finish
Gae Meets Django
Gae Meets Django
Refresh Austin - Intro to Dexy
Refresh Austin - Intro to Dexy
Workshop quality assurance for php projects tek12
Workshop quality assurance for php projects tek12
20130528 solution linux_frousseau_nopain_webdev
20130528 solution linux_frousseau_nopain_webdev
Quality Assurance for PHP projects - ZendCon 2012
Quality Assurance for PHP projects - ZendCon 2012
How to disassemble one monster app into an ecosystem of 30
How to disassemble one monster app into an ecosystem of 30
The Rails Way
The Rails Way
Workshop quality assurance for php projects - ZendCon 2013
Workshop quality assurance for php projects - ZendCon 2013
Unit testing after Zend Framework 1.8
Unit testing after Zend Framework 1.8
Codeigniter : Two Step View - Concept Implementation
Codeigniter : Two Step View - Concept Implementation
Workshop quality assurance for php projects - phpbelfast
Workshop quality assurance for php projects - phpbelfast
Zend Framework 1.9 Setup & Using Zend_Tool
Zend Framework 1.9 Setup & Using Zend_Tool
Building and deploying React applications
Building and deploying React applications
Using WordPress as your application stack
Using WordPress as your application stack
CodeIgniter PHP MVC Framework
CodeIgniter PHP MVC Framework
QConSP 2015 - Dicas de Performance para Aplicações Web
QConSP 2015 - Dicas de Performance para Aplicações Web
以Vue開發電子商務網站 架構與眉角
以Vue開發電子商務網站 架構與眉角
Angular JS2 Training Session #2
Angular JS2 Training Session #2
Desbravando Web Components
Desbravando Web Components
Kürzlich hochgeladen
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ThousandEyes
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Allon Mureinik
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
XfilesPro
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
Neo4j
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Safe Software
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
OnBoard
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
HostedbyConfluent
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
Kürzlich hochgeladen
(20)
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Slack Application Development 101 Slides
Slack Application Development 101 Slides
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
实战Ecos
1.
ECOS shopex
2.
• svn co
http://svn.ecos.shopex.cn/ecos/ trunk/app/base base
3.
• base/cmd • windows
basecmd.bat
4.
install uninstall search update createproject trace
/ man ... base:queue list base:task list base:task exec
5.
createproject base/cmd createproject bookstore
6.
index.php rpc.txt
ecos app config config.php mapper.php URL - APP data
7.
• app/notebook/dbschema/item.php <?php
$columns = array( 'item_id' => array ('type' => 'number','required' => true ,'extra' =>'auto_increment','pkey' => true), 'item_subject' => array ('type' => 'varchar(100)'), 'item_content' => array ('type' => 'text'), 'item_posttime' => array ('type' => 'time'), 'item_email' => array ('type' => 'email'), ); $db['item'] = array('columns'=>$columns);
8.
update base/cmd update
9.
• app/notebook/controller/default.php
public function index(){ $this->pagedata['items'] = $this->app->model('item')->getList('*'); $this->display('list.html'); }
10.
• app/notebook/controller/default.php
public function addnew(){ $this->begin(array('ctl'=>'default','act'=>'index')); $data = array( 'item_subject'=>$_POST['subject'], 'item_content'=>$_POST['content'], 'item_email'=>$_POST['email'], 'item_posttime'=>time(), ); $result = $this->app->model('item')->insert($data); $this->end($result); }
11.
• app/notebook/controller/default.php
public function index(){ $this->pagedata['items'] = $this->app->model('item')->getList('*'); // $gravatar = new notebook_gravatar; foreach($this->pagedata['items'] as $k=>$item){ $this->pagedata['items'][$k]['avatar'] = $gravatar->get_avatar($item['item_email']); } // $this->display('list.html'); }
12.
• app/notebook/lib/gravatar.php
<?php class notebook_gravatar{ function get_avatar($email){ return sprintf('http://www.gravatar.com/avatar/%s?s=48&r=x',md5 ($email)); } }
13.
include
? • php5 , Autoload • , __autoload .
14.
ECOS class
class ABC AAA_BBB_CCC_DDD App app app/AAA /base /BBB /lib /CCC /statics /DDD.php /ABC.php
15.
• app/notebook/view/list.html
<dd> <!-- --> <img src="<{$item.avatar}>" style="float:left;margin- right:10px" /> <!-- --> <{$item.item_content}> </dd>
16.
•
?
17.
Service
18.
Service • App • App
19.
Service • kernel::service('service_name')->method() • foreach(kernel::servicelist('service_name')
as $service_object){ ....
20.
Service •
$this->pagedata['items'] = $this->app->model('item')->getList('*'); // foreach(kernel::servicelist('notebook_addon') as $object){ foreach($this->pagedata['items'] as $k=>$item){ $this->pagedata['items'][$k]['addon'][] = $object->get_output($item); } } // $this->display('list.html');
21.
Service •
<{foreach from=$items item=item}> <dt> <{$item.item_subject}> <span class="date"> : <{$item.item_posttime|cdate}></span> </dt> <dd> <!-- --> <{foreach from=$item.addon item=block}> <{$block}> <{/foreach}> <!-- --> <{$item.item_content}> </dd> <{/foreach}>
22.
Service • app/notebook/service.xml
<services> <service id="notebook_addon"> <class>notebook_gravatar</class> </service> </services>
23.
Service •
base/app/cmd update
24.
•
app, notebook • app/alertnote
25.
• app/alertnote/app.xml
<app> <name> </name> <description> ...</description> <author> <name>somebody</name> <email>somebody@example.com</email> <url>http://www.example.com</url> </author> <depends> <app>notebook</app> </depends> </app>
26.
• app/alertnote/services.xml
<services> <service id="notebook_addon"> <class>alertnote_tools</class> </service> </services>
27.
• app/alertnote/lib/tools.php
<?php class alertnote_tools{ function get_output($item){ return '<span style="color:red" onclick="alert(' ! ! ! ')"> </span>'; } }
28.
app/base/cmd install alertnote Installing...
alertnote Installing service notebook_addon Application alertnote installed... ok.
29.
30.
: Rewrite
Querystring index.php ?/part1/part2/part3
31.
: Rewrite
ECOS PATHINFO / index.php part1/part2/part3
32.
app
33.
App
Base • • • • • key-value •
34.
App
setup • • config/deploy.xml
35.
App
dbeav • Entity-attribute-value model • • model::getList
36.
App
site • •
37.
App
content • CMS • Site
38.
App
image • • service ,
39.
App
desktop • • pam
40.
App
ectools • , , •
41.
App
b2c • , • pam
42.
App
pam • Pluggable Authentication Modules • • •
43.
App
b2c content site ectools image desktop pam dev dbeav base
44.
ECOS • • • •
,
45.
FAQ
Jetzt herunterladen